| 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)
|
|
|