diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-10 15:52:27 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-10 15:52:27 +0000 |
commit | 43211582b1fa8c69136385250e7b0446cf364b5c (patch) | |
tree | 655ab01543012b6fd5699dee8fab92876959b7d9 /chrome/browser/chromeos/tab_closeable_state_watcher.cc | |
parent | d43970a7ceee5fc5433787b0f28b64234a4039f2 (diff) | |
download | chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.zip chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.tar.gz chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.tar.bz2 |
Moving notification types which are chrome specific to a new header file chrome_notification_types.h.
This file lives in chrome\common. The chrome specific notifications start from NOTIFICATION_CONTENT_END
which defines the end of the enum used by content to define notification types. The notificaton_type.h file
in content\common has been renamed to content_notification_types.h
BUG=76698
Review URL: http://codereview.chromium.org/7327007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/tab_closeable_state_watcher.cc')
-rw-r--r-- | chrome/browser/chromeos/tab_closeable_state_watcher.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/tab_closeable_state_watcher.cc b/chrome/browser/chromeos/tab_closeable_state_watcher.cc index 408c766..a45a0d6c 100644 --- a/chrome/browser/chromeos/tab_closeable_state_watcher.cc +++ b/chrome/browser/chromeos/tab_closeable_state_watcher.cc @@ -9,6 +9,7 @@ #include "chrome/browser/profiles/profile.h" #include "chrome/browser/tabs/tab_strip_model.h" #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" +#include "chrome/common/chrome_notification_types.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/url_constants.h" #include "content/browser/tab_contents/tab_contents.h" @@ -70,7 +71,7 @@ TabCloseableStateWatcher::TabCloseableStateWatcher() switches::kGuestSession)), waiting_for_browser_(false) { BrowserList::AddObserver(this); - notification_registrar_.Add(this, NotificationType::APP_EXITING, + notification_registrar_.Add(this, content::NOTIFICATION_APP_EXITING, NotificationService::AllSources()); } @@ -187,9 +188,9 @@ void TabCloseableStateWatcher::OnBrowserRemoved(const Browser* browser) { //////////////////////////////////////////////////////////////////////////////// // TabCloseableStateWatcher, NotificationObserver implementation: -void TabCloseableStateWatcher::Observe(NotificationType type, +void TabCloseableStateWatcher::Observe(int type, const NotificationSource& source, const NotificationDetails& details) { - if (type.value != NotificationType::APP_EXITING) + if (type != content::NOTIFICATION_APP_EXITING) NOTREACHED(); if (!signing_off_) { signing_off_ = true; @@ -260,7 +261,7 @@ void TabCloseableStateWatcher::SetCloseableState(bool closeable) { // Notify of change in tab closeable state. NotificationService::current()->Notify( - NotificationType::TAB_CLOSEABLE_STATE_CHANGED, + chrome::NOTIFICATION_TAB_CLOSEABLE_STATE_CHANGED, NotificationService::AllSources(), Details<bool>(&can_close_tab_)); } |