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

Unified Diff: chrome/browser/profiles/gaia_info_update_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/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))

Powered by Google App Engine
This is Rietveld 408576698