From 04f7cb9a0b519cbc019c695335a36d080398ef7f Mon Sep 17 00:00:00 2001 From: Colin Blundell Date: Tue, 24 Feb 2015 14:06:47 +0100 Subject: [PATCH] Add ApplicationDelegate::Quit() This CL adds ApplicationDelegate::Quit(), which ApplicationImpl calls before shutting down the main run loop. In this function, an ApplicationDelegate should shut down anything that relies on the main run loop being active. R=eseidel@chromium.org, jamesr@chromium.org Review URL: https://codereview.chromium.org/947253003 --- engine/src/flutter/tools/debugger/debugger.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/tools/debugger/debugger.cc b/engine/src/flutter/tools/debugger/debugger.cc index 0bbc19c3d1..45ae4c4c41 100644 --- a/engine/src/flutter/tools/debugger/debugger.cc +++ b/engine/src/flutter/tools/debugger/debugger.cc @@ -67,7 +67,7 @@ class SkyDebugger : public mojo::ApplicationDelegate, if (request->relative_url == "/reload") { Load(callback, url_); } else if (request->relative_url == "/quit") { - Quit(); + Exit(); } else if (request->relative_url == "/load") { std::string url; mojo::common::BlockingCopyToString(request->body.Pass(), &url); @@ -118,7 +118,7 @@ class SkyDebugger : public mojo::ApplicationDelegate, window_manager_->Embed(url_, nullptr, nullptr); } - void Quit() { + void Exit() { // TODO(eseidel): We should orderly shutdown once mojo can. exit(0); }