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

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: 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 b2a0078b5da3a4d266b3c1187f2269eb5acb6265..e695a84f7fb28df59d7266e1b672e2cb456318fb 100644
--- a/chrome/browser/chromeos/drive/drive_integration_service.cc
+++ b/chrome/browser/chromeos/drive/drive_integration_service.cc
@@ -380,7 +380,7 @@ DriveIntegrationService*
DriveIntegrationServiceFactory::GetForProfileRegardlessOfStates(
Profile* profile) {
return static_cast<DriveIntegrationService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -398,7 +398,7 @@ DriveIntegrationService*
DriveIntegrationServiceFactory::FindForProfileRegardlessOfStates(
Profile* profile) {
return static_cast<DriveIntegrationService*>(
- GetInstance()->GetServiceForProfile(profile, false));
+ GetInstance()->GetServiceForBrowserContext(profile, false));
}
// static
@@ -413,8 +413,8 @@ void DriveIntegrationServiceFactory::SetFactoryForTest(
}
DriveIntegrationServiceFactory::DriveIntegrationServiceFactory()
- : ProfileKeyedServiceFactory("DriveIntegrationService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory("DriveIntegrationService",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(google_apis::DriveNotificationManagerFactory::GetInstance());
DependsOn(DownloadServiceFactory::GetInstance());
}
@@ -422,7 +422,7 @@ 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