Index: chrome/browser/ui/browser_navigator_browsertest.cc |
=================================================================== |
--- chrome/browser/ui/browser_navigator_browsertest.cc (revision 91968) |
+++ chrome/browser/ui/browser_navigator_browsertest.cc (working copy) |
@@ -72,11 +72,11 @@ |
EXPECT_EQ(old_url, browser()->GetSelectedTabContents()->GetURL()); |
} |
-void BrowserNavigatorTest::Observe(NotificationType type, |
+void BrowserNavigatorTest::Observe(int type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
- switch (type.value) { |
- case NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB: { |
+ switch (type) { |
+ case content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB: { |
++this->created_tab_contents_count_; |
break; |
} |
@@ -111,7 +111,7 @@ |
NotificationRegistrar registrar; |
// As the registrar object goes out of scope, this will get unregistered |
- registrar.Add(this, NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB, |
+ registrar.Add(this, content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB, |
NotificationService::AllSources()); |
browser()->AddSelectedTabWithURL(singleton_url1, PageTransition::LINK); |