Format code from previous patch
This commit is contained in:
Dan Field 2018-09-24 18:42:04 -04:00 committed by GitHub
parent 89eeaf461e
commit 1df2685196
3 changed files with 7 additions and 4 deletions

View File

@ -32,8 +32,9 @@ class Engine final : public blink::RuntimeDelegate {
// Used by Engine::Run
enum class RunStatus {
Success, // Successful call to Run()
FailureAlreadyRunning, // Isolate was already running; may not be considered a failure by callers
Failure, // Isolate could not be started or other unspecified failure
FailureAlreadyRunning, // Isolate was already running; may not be
// considered a failure by callers
Failure, // Isolate could not be started or other unspecified failure
};
class Delegate {

View File

@ -162,7 +162,8 @@ void AndroidShellHolder::Launch(RunConfiguration config) {
config = std::move(config) //
]() mutable {
FML_LOG(INFO) << "Attempting to launch engine configuration...";
if (!engine || engine->Run(std::move(config)) == shell::Engine::RunStatus::Failure) {
if (!engine || engine->Run(std::move(config)) ==
shell::Engine::RunStatus::Failure) {
FML_LOG(ERROR) << "Could not launch engine in configuration.";
} else {
FML_LOG(INFO) << "Isolate for engine configuration successfully "

View File

@ -171,7 +171,8 @@ int RunTester(const blink::Settings& settings, bool run_forever) {
fml::MessageLoop::GetCurrent().AddTaskObserver(
reinterpret_cast<intptr_t>(&completion_observer),
[&completion_observer]() { completion_observer.DidProcessTask(); });
if (engine->Run(std::move(config)) != shell::Engine::RunStatus::Failure) {
if (engine->Run(std::move(config)) !=
shell::Engine::RunStatus::Failure) {
engine_did_run = true;
blink::ViewportMetrics metrics;