Index: chrome/browser/profiles/gaia_info_update_service_factory.cc |
diff --git a/chrome/browser/profiles/gaia_info_update_service_factory.cc b/chrome/browser/profiles/gaia_info_update_service_factory.cc |
index 72ea8062981ababb625c19105c41ed0c2b00337d..bc1e0fe9b72252ef59357a066885f498bb02d932 100644 |
--- a/chrome/browser/profiles/gaia_info_update_service_factory.cc |
+++ b/chrome/browser/profiles/gaia_info_update_service_factory.cc |
@@ -11,8 +11,9 @@ |
#include "components/user_prefs/pref_registry_syncable.h" |
GAIAInfoUpdateServiceFactory::GAIAInfoUpdateServiceFactory() |
- : ProfileKeyedServiceFactory("GAIAInfoUpdateService", |
- ProfileDependencyManager::GetInstance()) { |
+ : BrowserContextKeyedServiceFactory( |
+ "GAIAInfoUpdateService", |
+ BrowserContextDependencyManager::GetInstance()) { |
} |
GAIAInfoUpdateServiceFactory::~GAIAInfoUpdateServiceFactory() {} |
@@ -21,7 +22,7 @@ GAIAInfoUpdateServiceFactory::~GAIAInfoUpdateServiceFactory() {} |
GAIAInfoUpdateService* GAIAInfoUpdateServiceFactory::GetForProfile( |
Profile* profile) { |
return static_cast<GAIAInfoUpdateService*>( |
- GetInstance()->GetServiceForProfile(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |
// static |
@@ -29,7 +30,8 @@ GAIAInfoUpdateServiceFactory* GAIAInfoUpdateServiceFactory::GetInstance() { |
return Singleton<GAIAInfoUpdateServiceFactory>::get(); |
} |
-ProfileKeyedService* GAIAInfoUpdateServiceFactory::BuildServiceInstanceFor( |
+BrowserContextKeyedService* |
+GAIAInfoUpdateServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* context) const { |
Profile* profile = static_cast<Profile*>(context); |
if (!GAIAInfoUpdateService::ShouldUseGAIAProfileInfo(profile)) |