未验证 提交 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 {
// 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 {
......
......@@ -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 "
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册