未验证 提交 8743bb82 编写于 作者: D Dan Field 提交者: GitHub

Format for #6324 (#6326)

Format code from previous patch
上级 89516aad
...@@ -32,8 +32,9 @@ class Engine final : public blink::RuntimeDelegate { ...@@ -32,8 +32,9 @@ class Engine final : public blink::RuntimeDelegate {
// Used by Engine::Run // Used by Engine::Run
enum class RunStatus { enum class RunStatus {
Success, // Successful call to Run() Success, // Successful call to Run()
FailureAlreadyRunning, // Isolate was already running; may not be considered a failure by callers FailureAlreadyRunning, // Isolate was already running; may not be
Failure, // Isolate could not be started or other unspecified failure // considered a failure by callers
Failure, // Isolate could not be started or other unspecified failure
}; };
class Delegate { class Delegate {
......
...@@ -162,7 +162,8 @@ void AndroidShellHolder::Launch(RunConfiguration config) { ...@@ -162,7 +162,8 @@ void AndroidShellHolder::Launch(RunConfiguration config) {
config = std::move(config) // config = std::move(config) //
]() mutable { ]() mutable {
FML_LOG(INFO) << "Attempting to launch engine configuration..."; 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."; FML_LOG(ERROR) << "Could not launch engine in configuration.";
} else { } else {
FML_LOG(INFO) << "Isolate for engine configuration successfully " FML_LOG(INFO) << "Isolate for engine configuration successfully "
......
...@@ -171,7 +171,8 @@ int RunTester(const blink::Settings& settings, bool run_forever) { ...@@ -171,7 +171,8 @@ int RunTester(const blink::Settings& settings, bool run_forever) {
fml::MessageLoop::GetCurrent().AddTaskObserver( fml::MessageLoop::GetCurrent().AddTaskObserver(
reinterpret_cast<intptr_t>(&completion_observer), reinterpret_cast<intptr_t>(&completion_observer),
[&completion_observer]() { completion_observer.DidProcessTask(); }); [&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; engine_did_run = true;
blink::ViewportMetrics metrics; blink::ViewportMetrics metrics;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册