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

Unified Diff: chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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/notifications/sync_notifier/chrome_notifier_service_factory.cc
diff --git a/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc b/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc
index 812a71bd7e717fef04c7f1d47fa8c1d1ef77e293..a029c4d83865baf460d5338ee79be7cfca67bfba 100644
--- a/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc
+++ b/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc
@@ -14,7 +14,7 @@ namespace notifier {
ChromeNotifierService* ChromeNotifierServiceFactory::GetForProfile(
Profile* profile, Profile::ServiceAccessType sat) {
return static_cast<ChromeNotifierService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -23,13 +23,14 @@ ChromeNotifierServiceFactory* ChromeNotifierServiceFactory::GetInstance() {
}
ChromeNotifierServiceFactory::ChromeNotifierServiceFactory()
- : ProfileKeyedServiceFactory(
- "ChromeNotifierService", ProfileDependencyManager::GetInstance()) {}
+ : BrowserContextKeyedServiceFactory(
+ "ChromeNotifierService",
+ BrowserContextDependencyManager::GetInstance()) {}
ChromeNotifierServiceFactory::~ChromeNotifierServiceFactory() {
}
-ProfileKeyedService*
+BrowserContextKeyedService*
ChromeNotifierServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
NotificationUIManager* notification_manager =

Powered by Google App Engine
This is Rietveld 408576698