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

Unified Diff: trunk/src/mojo/service_manager/background_shell_service_loader.h

Issue 443063003: Revert 287680 "mojo: terminate apps if the shell goes away" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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: trunk/src/mojo/service_manager/background_shell_service_loader.h
===================================================================
--- trunk/src/mojo/service_manager/background_shell_service_loader.h (revision 287751)
+++ trunk/src/mojo/service_manager/background_shell_service_loader.h (working copy)
@@ -32,6 +32,12 @@
virtual void OnServiceError(ServiceManager* manager,
const GURL& url) OVERRIDE;
+ // Post a task to quit the MessageLoop we are running for the app when we
+ // are destroyed. Most apps should quit themselves and not need this.
+ // TODO(tim): Remove this method once applications are smart enough
+ // to quit themselves. Bug 394477.
+ void set_quit_on_shutdown() { quit_on_shutdown_ = true; }
+
private:
class BackgroundLoader;

Powered by Google App Engine
This is Rietveld 408576698