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

Unified Diff: mojo/application/public/cpp/lib/application_runner.cc

Issue 1266643003: ApplicationImpl cleanup, part 1: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/application/public/cpp/lib/application_runner.cc
diff --git a/mojo/application/public/cpp/lib/application_runner.cc b/mojo/application/public/cpp/lib/application_runner.cc
index 0418d91b47a45c490c8e4adef6db57eee56df09b..2383b7e72f5c89fb8c2865ab6a680382a715cc26 100644
--- a/mojo/application/public/cpp/lib/application_runner.cc
+++ b/mojo/application/public/cpp/lib/application_runner.cc
@@ -60,7 +60,8 @@ MojoResult ApplicationRunner::Run(MojoHandle application_request_handle,
ApplicationImpl impl(delegate_.get(),
MakeRequest<Application>(MakeScopedHandle(
- MessagePipeHandle(application_request_handle))));
+ MessagePipeHandle(application_request_handle))),
+ base::MessageLoop::QuitWhenIdleClosure());
loop->Run();
// It's very common for the delegate to cache the app and terminate on
// errors. If we don't delete the delegate before the app we run the risk

Powered by Google App Engine
This is Rietveld 408576698