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

Unified Diff: chrome/browser/chromeos/tab_closeable_state_watcher.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « chrome/browser/chromeos/tab_closeable_state_watcher.h ('k') | chrome/browser/chromeos/web_socket_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/tab_closeable_state_watcher.cc
===================================================================
--- chrome/browser/chromeos/tab_closeable_state_watcher.cc (revision 91971)
+++ chrome/browser/chromeos/tab_closeable_state_watcher.cc (working copy)
@@ -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 @@
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 @@
////////////////////////////////////////////////////////////////////////////////
// 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 @@
// 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_));
}
« no previous file with comments | « chrome/browser/chromeos/tab_closeable_state_watcher.h ('k') | chrome/browser/chromeos/web_socket_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698