| Index: chrome/browser/sync/profile_sync_service_factory.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service_factory.cc b/chrome/browser/sync/profile_sync_service_factory.cc
|
| index 635a119448ed983c630402367e73e9e873f697d2..903091080606ad30bd15d66c2eec056b829bcaa7 100644
|
| --- a/chrome/browser/sync/profile_sync_service_factory.cc
|
| +++ b/chrome/browser/sync/profile_sync_service_factory.cc
|
| @@ -44,12 +44,12 @@ ProfileSyncService* ProfileSyncServiceFactory::GetForProfile(
|
| return NULL;
|
|
|
| return static_cast<ProfileSyncService*>(
|
| - GetInstance()->GetServiceForProfile(profile, true));
|
| + GetInstance()->GetServiceForBrowserContext(profile, true));
|
| }
|
|
|
| ProfileSyncServiceFactory::ProfileSyncServiceFactory()
|
| - : ProfileKeyedServiceFactory("ProfileSyncService",
|
| - ProfileDependencyManager::GetInstance()) {
|
| + : BrowserContextKeyedServiceFactory("ProfileSyncService",
|
| + BrowserContextDependencyManager::GetInstance()) {
|
|
|
| // The ProfileSyncService depends on various SyncableServices being around
|
| // when it is shut down. Specify those dependencies here to build the proper
|
| @@ -68,8 +68,8 @@ ProfileSyncServiceFactory::ProfileSyncServiceFactory()
|
| DependsOn(BookmarkModelFactory::GetInstance());
|
| DependsOn(AboutSigninInternalsFactory::GetInstance());
|
|
|
| - // The following have not been converted to ProfileKeyedServices yet, and for
|
| - // now they are explicitly destroyed after the ProfileDependencyManager is
|
| + // The following have not been converted to BrowserContextKeyedServices yet, and for
|
| + // now they are explicitly destroyed after the BrowserContextDependencyManager is
|
| // told to DestroyProfileServices, so they will be around when the
|
| // ProfileSyncService is destroyed.
|
|
|
| @@ -79,7 +79,7 @@ ProfileSyncServiceFactory::ProfileSyncServiceFactory()
|
| ProfileSyncServiceFactory::~ProfileSyncServiceFactory() {
|
| }
|
|
|
| -ProfileKeyedService* ProfileSyncServiceFactory::BuildServiceInstanceFor(
|
| +BrowserContextKeyedService* ProfileSyncServiceFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| Profile* profile = static_cast<Profile*>(context);
|
|
|
| @@ -113,5 +113,5 @@ ProfileKeyedService* ProfileSyncServiceFactory::BuildServiceInstanceFor(
|
|
|
| // static
|
| bool ProfileSyncServiceFactory::HasProfileSyncService(Profile* profile) {
|
| - return GetInstance()->GetServiceForProfile(profile, false) != NULL;
|
| + return GetInstance()->GetServiceForBrowserContext(profile, false) != NULL;
|
| }
|
|
|