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

Unified Diff: chrome/browser/chromeos/drive/drive_integration_service.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/chromeos/drive/drive_integration_service.cc
diff --git a/chrome/browser/chromeos/drive/drive_integration_service.cc b/chrome/browser/chromeos/drive/drive_integration_service.cc
index 8257a2a9fb6a9868a3823c87a6130b7235af592c..3815fa957e5d19c41aa735da3c1cb1da208c0109 100644
--- a/chrome/browser/chromeos/drive/drive_integration_service.cc
+++ b/chrome/browser/chromeos/drive/drive_integration_service.cc
@@ -377,7 +377,7 @@ DriveIntegrationService*
DriveIntegrationServiceFactory::GetForProfileRegardlessOfStates(
Profile* profile) {
return static_cast<DriveIntegrationService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -395,7 +395,7 @@ DriveIntegrationService*
DriveIntegrationServiceFactory::FindForProfileRegardlessOfStates(
Profile* profile) {
return static_cast<DriveIntegrationService*>(
- GetInstance()->GetServiceForProfile(profile, false));
+ GetInstance()->GetServiceForBrowserContext(profile, false));
}
// static
@@ -410,8 +410,9 @@ void DriveIntegrationServiceFactory::SetFactoryForTest(
}
DriveIntegrationServiceFactory::DriveIntegrationServiceFactory()
- : ProfileKeyedServiceFactory("DriveIntegrationService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "DriveIntegrationService",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(google_apis::DriveNotificationManagerFactory::GetInstance());
DependsOn(DownloadServiceFactory::GetInstance());
}
@@ -419,7 +420,8 @@ DriveIntegrationServiceFactory::DriveIntegrationServiceFactory()
DriveIntegrationServiceFactory::~DriveIntegrationServiceFactory() {
}
-ProfileKeyedService* DriveIntegrationServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+DriveIntegrationServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = static_cast<Profile*>(context);

Powered by Google App Engine
This is Rietveld 408576698