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

Unified Diff: chrome/browser/tabs/tab_finder.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
« no previous file with comments | « chrome/browser/tabs/tab_finder.h ('k') | chrome/browser/tabs/tab_strip_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « chrome/browser/tabs/tab_finder.h ('k') | chrome/browser/tabs/tab_strip_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698