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

Unified Diff: chrome/browser/ui/search_engines/template_url_fetcher_ui_callbacks.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
Index: chrome/browser/ui/search_engines/template_url_fetcher_ui_callbacks.cc
===================================================================
--- chrome/browser/ui/search_engines/template_url_fetcher_ui_callbacks.cc (revision 91968)
+++ chrome/browser/ui/search_engines/template_url_fetcher_ui_callbacks.cc (working copy)
@@ -10,8 +10,8 @@
#include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
#include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h"
#include "content/browser/tab_contents/tab_contents.h"
+#include "content/common/content_notification_types.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
TemplateURLFetcherUICallbacks::TemplateURLFetcherUICallbacks(
SearchEngineTabHelper* tab_helper,
@@ -19,7 +19,7 @@
: source_(tab_helper),
tab_contents_(tab_contents) {
registrar_.Add(this,
- NotificationType::TAB_CONTENTS_DESTROYED,
+ content::NOTIFICATION_TAB_CONTENTS_DESTROYED,
Source<TabContents>(tab_contents_));
}
@@ -51,10 +51,10 @@
}
void TemplateURLFetcherUICallbacks::Observe(
- NotificationType type,
+ int type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NotificationType::TAB_CONTENTS_DESTROYED);
+ DCHECK(type == content::NOTIFICATION_TAB_CONTENTS_DESTROYED);
DCHECK(source == Source<TabContents>(tab_contents_));
source_ = NULL;
tab_contents_ = NULL;

Powered by Google App Engine
This is Rietveld 408576698