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

Unified Diff: chrome/browser/web_resource/promo_resource_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/web_resource/promo_resource_service.cc
===================================================================
--- chrome/browser/web_resource/promo_resource_service.cc (revision 106380)
+++ chrome/browser/web_resource/promo_resource_service.cc (working copy)
@@ -21,7 +21,7 @@
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/pref_names.h"
#include "content/browser/browser_thread.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "googleurl/src/gurl.h"
namespace {
@@ -368,10 +368,11 @@
!(old_logo_end == logo_end)) {
prefs_->SetDouble(prefs::kNTPCustomLogoStart, logo_start);
prefs_->SetDouble(prefs::kNTPCustomLogoEnd, logo_end);
- NotificationService* service = NotificationService::current();
+ content::NotificationService* service =
+ content::NotificationService::current();
service->Notify(chrome::NOTIFICATION_PROMO_RESOURCE_STATE_CHANGED,
content::Source<WebResourceService>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
}
@@ -419,10 +420,10 @@
prefs_->ClearPref(prefs::kNTPSyncPromoGroup);
prefs_->ClearPref(prefs::kNTPSyncPromoGroupMax);
// Notify the NTP resource cache if the promo has been disabled.
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PROMO_RESOURCE_STATE_CHANGED,
content::Source<WebResourceService>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
return;
}
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_unittest.cc ('k') | chrome/browser/web_resource/promo_resource_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698