diff options
author | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-13 11:10:30 +0000 |
---|---|---|
committer | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-13 11:10:30 +0000 |
commit | 074d55d8bdc146c821193603f1e52eff69881e42 (patch) | |
tree | 2896402759a9321826284c443dd5d1b43270a34c /chrome/browser/ui/tabs | |
parent | 228bc95b6cc14931053eb68f3c84dadbcfff73f0 (diff) | |
download | chromium_src-074d55d8bdc146c821193603f1e52eff69881e42.zip chromium_src-074d55d8bdc146c821193603f1e52eff69881e42.tar.gz chromium_src-074d55d8bdc146c821193603f1e52eff69881e42.tar.bz2 |
Rename APP_EXITING notification to ALL_BROWSERS_CLOSING.
With packaged apps the action of exiting Chrome (e.g. via the wrench menu)
will not exit the browser process, so this notification is being renamed to
make that clearer. Also it seems to be misused currently by the multi-profile
code, which has been updated to handle an exit of this type being aborted
by an onbeforeload handler.
BUG=130457
TEST=Existing tests
Review URL: https://chromiumcodereview.appspot.com/10692094
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146556 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/tabs')
-rw-r--r-- | chrome/browser/ui/tabs/pinned_tab_service.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/tabs/pinned_tab_service.cc b/chrome/browser/ui/tabs/pinned_tab_service.cc index c3c33f1..683c05c 100644 --- a/chrome/browser/ui/tabs/pinned_tab_service.cc +++ b/chrome/browser/ui/tabs/pinned_tab_service.cc @@ -30,7 +30,7 @@ PinnedTabService::PinnedTabService(Profile* profile) content::NotificationService::AllBrowserContextsAndSources()); registrar_.Add(this, chrome::NOTIFICATION_BROWSER_CLOSING, content::NotificationService::AllSources()); - registrar_.Add(this, content::NOTIFICATION_APP_EXITING, + registrar_.Add(this, content::NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST, content::NotificationService::AllSources()); } @@ -63,7 +63,7 @@ void PinnedTabService::Observe(int type, break; } - case content::NOTIFICATION_APP_EXITING: { + case content::NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST: { if (has_normal_browser_) GotExit(); break; |