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 = |