summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_webnavigation_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_webnavigation_api.cc')
-rw-r--r--chrome/browser/extensions/extension_webnavigation_api.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extension_webnavigation_api.cc b/chrome/browser/extensions/extension_webnavigation_api.cc
index 513760e..bf395ab 100644
--- a/chrome/browser/extensions/extension_webnavigation_api.cc
+++ b/chrome/browser/extensions/extension_webnavigation_api.cc
@@ -255,17 +255,17 @@ ExtensionWebNavigationEventRouter::~ExtensionWebNavigationEventRouter() {}
void ExtensionWebNavigationEventRouter::Init() {
if (registrar_.IsEmpty()) {
registrar_.Add(this,
- NotificationType::CREATING_NEW_WINDOW,
+ content::NOTIFICATION_CREATING_NEW_WINDOW,
NotificationService::AllSources());
}
}
void ExtensionWebNavigationEventRouter::Observe(
- NotificationType type,
+ int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::CREATING_NEW_WINDOW:
+ switch (type) {
+ case content::NOTIFICATION_CREATING_NEW_WINDOW:
CreatingNewWindow(
Source<TabContents>(source).ptr(),
Details<const ViewHostMsg_CreateWindow_Params>(details).ptr());