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

Unified Diff: chrome/browser/search_engines/template_url_service.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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_service.cc
===================================================================
--- chrome/browser/search_engines/template_url_service.cc (revision 106380)
+++ chrome/browser/search_engines/template_url_service.cc (working copy)
@@ -38,7 +38,7 @@
#include "chrome/common/guid.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "net/base/net_util.h"
#include "ui/base/l10n/l10n_util.h"
@@ -927,7 +927,7 @@
PrefSetObserver::CreateDefaultSearchPrefSetObserver(prefs, this));
}
registrar_.Add(this, chrome::NOTIFICATION_GOOGLE_URL_UPDATED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
if (num_initializers > 0) {
// This path is only hit by test code and is used to simulate a loaded
@@ -1043,10 +1043,10 @@
}
void TemplateURLService::NotifyLoaded() {
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED,
content::Source<TemplateURLService>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
for (size_t i = 0; i < pending_extension_ids_.size(); ++i) {
const Extension* extension = profile_->GetExtensionService()->
@@ -1552,7 +1552,7 @@
if (profile_) {
content::Source<Profile> source(profile_);
TemplateURLID id = template_url->id();
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_TEMPLATE_URL_REMOVED,
source,
content::Details<TemplateURLID>(&id));

Powered by Google App Engine
This is Rietveld 408576698