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

Unified Diff: chrome/browser/extensions/extension_browser_event_router.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
Index: chrome/browser/extensions/extension_browser_event_router.cc
===================================================================
--- chrome/browser/extensions/extension_browser_event_router.cc (revision 91771)
+++ chrome/browser/extensions/extension_browser_event_router.cc (working copy)
@@ -14,6 +14,7 @@
#include "chrome/browser/tabs/tab_strip_model.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_constants.h"
#include "content/browser/tab_contents/navigation_entry.h"
@@ -127,7 +128,7 @@
// If this is a new window, it isn't ready at this point, so we register to be
// notified when it is. If this is an existing window, this is a no-op that we
// just do to reduce code complexity.
- registrar_.Add(this, NotificationType::BROWSER_WINDOW_READY,
+ registrar_.Add(this, chrome::BROWSER_WINDOW_READY,
Source<const Browser>(browser));
for (int i = 0; i < browser->tabstrip_model()->count(); ++i)
@@ -175,7 +176,7 @@
// Stop listening to TabStripModel events for this browser.
browser->tabstrip_model()->RemoveObserver(this);
- registrar_.Remove(this, NotificationType::BROWSER_WINDOW_READY,
+ registrar_.Remove(this, chrome::BROWSER_WINDOW_READY,
Source<const Browser>(browser));
DispatchSimpleBrowserEvent(browser->profile(),
@@ -501,7 +502,7 @@
Source<NavigationController>(&contents->controller()));
registrar_.Remove(this, NotificationType::TAB_CONTENTS_DESTROYED,
Source<TabContents>(contents));
- } else if (type == NotificationType::BROWSER_WINDOW_READY) {
+ } else if (type == chrome::BROWSER_WINDOW_READY) {
const Browser* browser = Source<const Browser>(source).ptr();
OnBrowserWindowReady(browser);
#if defined(OS_MACOSX)

Powered by Google App Engine
This is Rietveld 408576698