diff options
author | jackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-29 01:51:44 +0000 |
---|---|---|
committer | jackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-29 01:51:44 +0000 |
commit | 425f7a0afb038772bf0d1bfb007a1ccb13dfae35 (patch) | |
tree | b2105f30f45bbd4b7315922b5f1cb262bfc90df4 /chrome/browser/app_controller_mac.h | |
parent | ac296392d7ab509cda68f9465e0f3f23bc383879 (diff) | |
download | chromium_src-425f7a0afb038772bf0d1bfb007a1ccb13dfae35.zip chromium_src-425f7a0afb038772bf0d1bfb007a1ccb13dfae35.tar.gz chromium_src-425f7a0afb038772bf0d1bfb007a1ccb13dfae35.tar.bz2 |
Prevent Chrome from quitting when apps are open. (Mac)
This is added behind --apps-keep-chrome-alive.
When Chrome is quit, a notification is shown to let the user know that
Chrome will continue running.
The browser session should be shut down like on Windows, but that is
not yet implemented. Similarly, quitting all the apps should quit
Chrome. These will be added in followup CLs.
BUG=333429
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265889
Review URL: https://codereview.chromium.org/220373003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266731 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.h')
-rw-r--r-- | chrome/browser/app_controller_mac.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/app_controller_mac.h b/chrome/browser/app_controller_mac.h index efb0783..f148c13 100644 --- a/chrome/browser/app_controller_mac.h +++ b/chrome/browser/app_controller_mac.h @@ -25,6 +25,8 @@ class GURL; class HistoryMenuBridge; class Profile; @class ProfileMenuController; +class QuitWithAppsController; + namespace ui { class WorkAreaWatcherObserver; } @@ -87,6 +89,9 @@ class WorkAreaWatcherObserver; scoped_ptr<PrefChangeRegistrar> profilePrefRegistrar_; PrefChangeRegistrar localPrefRegistrar_; + + // Displays a notification when quitting while apps are running. + scoped_refptr<QuitWithAppsController> quitWithAppsController_; } @property(readonly, nonatomic) BOOL startupComplete; |