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

Unified Diff: chrome/browser/search_engines/template_url_fetcher.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/search_engines/template_url_fetcher.cc
===================================================================
--- chrome/browser/search_engines/template_url_fetcher.cc (revision 91968)
+++ chrome/browser/search_engines/template_url_fetcher.cc (working copy)
@@ -14,10 +14,10 @@
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/search_engines/template_url_parser.h"
+#include "chrome/common/chrome_notification_types.h"
#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
#include "content/common/url_fetcher.h"
#include "net/url_request/url_request_status.h"
@@ -34,7 +34,7 @@
ProviderType provider_type);
// NotificationObserver:
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details);
@@ -97,7 +97,7 @@
if (!model->loaded()) {
// Start the model load and set-up waiting for it.
registrar_.Add(this,
- NotificationType::TEMPLATE_URL_SERVICE_LOADED,
+ chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED,
Source<TemplateURLService>(model));
model->Load();
}
@@ -107,10 +107,10 @@
}
void TemplateURLFetcher::RequestDelegate::Observe(
- NotificationType type,
+ int type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NotificationType::TEMPLATE_URL_SERVICE_LOADED);
+ DCHECK(type == chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED);
if (!template_url_.get())
return;

Powered by Google App Engine
This is Rietveld 408576698