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

Unified Diff: chrome/browser/sync_file_system/sync_file_system_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/sync_file_system/sync_file_system_service_factory.cc
diff --git a/chrome/browser/sync_file_system/sync_file_system_service_factory.cc b/chrome/browser/sync_file_system/sync_file_system_service_factory.cc
index d13cfc8f26174908c426448667024c5b8cefbe31..f33fd182691bdef2fc84acb917771c3b006e0a65 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service_factory.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service_factory.cc
@@ -23,7 +23,7 @@ const char kDisableLastWriteWin[] = "disable-syncfs-last-write-win";
SyncFileSystemService* SyncFileSystemServiceFactory::GetForProfile(
Profile* profile) {
return static_cast<SyncFileSystemService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -37,14 +37,16 @@ void SyncFileSystemServiceFactory::set_mock_remote_file_service(
}
SyncFileSystemServiceFactory::SyncFileSystemServiceFactory()
- : ProfileKeyedServiceFactory("SyncFileSystemService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "SyncFileSystemService",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(google_apis::DriveNotificationManagerFactory::GetInstance());
}
SyncFileSystemServiceFactory::~SyncFileSystemServiceFactory() {}
-ProfileKeyedService* SyncFileSystemServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+SyncFileSystemServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = static_cast<Profile*>(context);

Powered by Google App Engine
This is Rietveld 408576698