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

Unified Diff: chrome/browser/google_apis/drive_notification_manager_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/google_apis/drive_notification_manager_factory.cc
diff --git a/chrome/browser/google_apis/drive_notification_manager_factory.cc b/chrome/browser/google_apis/drive_notification_manager_factory.cc
index 0d77ea7facee5edf37f7b45cfb7a8468e55e1608..9c28800ebeff82f701fbce995acd858ab89a5388 100644
--- a/chrome/browser/google_apis/drive_notification_manager_factory.cc
+++ b/chrome/browser/google_apis/drive_notification_manager_factory.cc
@@ -19,7 +19,7 @@ DriveNotificationManagerFactory::GetForProfile(Profile* profile) {
return NULL;
return static_cast<DriveNotificationManager*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -29,14 +29,16 @@ DriveNotificationManagerFactory::GetInstance() {
}
DriveNotificationManagerFactory::DriveNotificationManagerFactory()
- : ProfileKeyedServiceFactory("DriveNotificationManager",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "DriveNotificationManager",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(ProfileSyncServiceFactory::GetInstance());
}
DriveNotificationManagerFactory::~DriveNotificationManagerFactory() {}
-ProfileKeyedService* DriveNotificationManagerFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+DriveNotificationManagerFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new DriveNotificationManager(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698