Index: chrome/browser/tabs/tab_finder.cc |
=================================================================== |
--- chrome/browser/tabs/tab_finder.cc (revision 91968) |
+++ chrome/browser/tabs/tab_finder.cc (working copy) |
@@ -16,9 +16,9 @@ |
#include "content/browser/tab_contents/navigation_entry.h" |
#include "content/browser/tab_contents/tab_contents.h" |
#include "content/browser/tab_contents/tab_contents_observer.h" |
+#include "content/common/content_notification_types.h" |
#include "content/common/notification_service.h" |
#include "content/common/notification_source.h" |
-#include "content/common/notification_type.h" |
#include "content/common/page_transition_types.h" |
#include "content/common/view_messages.h" |
@@ -109,10 +109,10 @@ |
return NULL; |
} |
-void TabFinder::Observe(NotificationType type, |
+void TabFinder::Observe(int type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
- DCHECK_EQ(type.value, NotificationType::TAB_PARENTED); |
+ DCHECK_EQ(type, content::NOTIFICATION_TAB_PARENTED); |
// The tab was added to a browser. Query for its state now. |
TabContentsWrapper* tab = Source<TabContentsWrapper>(source).ptr(); |
@@ -120,7 +120,7 @@ |
} |
TabFinder::TabFinder() { |
- registrar_.Add(this, NotificationType::TAB_PARENTED, |
+ registrar_.Add(this, content::NOTIFICATION_TAB_PARENTED, |
NotificationService::AllSources()); |
} |