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

Unified Diff: chrome/browser/autofill/autocheckout_whitelist_manager_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/autofill/autocheckout_whitelist_manager_factory.cc
diff --git a/chrome/browser/autofill/autocheckout_whitelist_manager_factory.cc b/chrome/browser/autofill/autocheckout_whitelist_manager_factory.cc
index 180bc8ed95d2e564e3b832bc0d913c546f819512..a38c9dc6048f3e5845dda44640fd6625308d9e70 100644
--- a/chrome/browser/autofill/autocheckout_whitelist_manager_factory.cc
+++ b/chrome/browser/autofill/autocheckout_whitelist_manager_factory.cc
@@ -51,7 +51,7 @@ WhitelistManager*
WhitelistManagerFactory::GetForProfile(Profile* profile) {
WhitelistManagerService* service =
static_cast<WhitelistManagerService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
// service can be NULL for tests.
return service ? service->GetWhitelistManager() : NULL;
}
@@ -63,14 +63,15 @@ WhitelistManagerFactory::GetInstance() {
}
WhitelistManagerFactory::WhitelistManagerFactory()
- : ProfileKeyedServiceFactory("AutocheckoutWhitelistManager",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "AutocheckoutWhitelistManager",
+ BrowserContextDependencyManager::GetInstance()) {
}
WhitelistManagerFactory::~WhitelistManagerFactory() {
}
-ProfileKeyedService*
+BrowserContextKeyedService*
WhitelistManagerFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
WhitelistManagerService* service =

Powered by Google App Engine
This is Rietveld 408576698