Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1460)

Unified Diff: mojo/runner/context.cc

Issue 1402533003: Don't use base::MessageLoop::{Quit,QuitClosure} in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/runner/context.cc
diff --git a/mojo/runner/context.cc b/mojo/runner/context.cc
index f1bb1a468ae26b4b75343822f6a8611587f439c8..462ed84d350d8435d09a0253a0e98ab58fcf7bbe 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -259,7 +259,7 @@ void Context::Shutdown() {
void Context::OnShutdownComplete() {
DCHECK_EQ(base::MessageLoop::current()->task_runner(),
task_runners_->shell_runner());
- base::MessageLoop::current()->Quit();
+ base::MessageLoop::current()->QuitWhenIdle();
}
void Context::Run(const GURL& url) {
@@ -302,7 +302,7 @@ void Context::OnApplicationEnd(const GURL& url) {
DCHECK_EQ(base::MessageLoop::current()->task_runner(),
task_runners_->shell_runner());
if (app_complete_callback_.is_null()) {
- base::MessageLoop::current()->Quit();
+ base::MessageLoop::current()->QuitWhenIdle();
} else {
app_complete_callback_.Run();
}
« no previous file with comments | « mojo/runner/android/background_application_loader_unittest.cc ('k') | mojo/runner/native_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698