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

Unified Diff: chrome/browser/password_manager/password_store_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/password_manager/password_store_factory.cc
diff --git a/chrome/browser/password_manager/password_store_factory.cc b/chrome/browser/password_manager/password_store_factory.cc
index d66a6bc32664799c72770600d3d3c1063cc377fb..1c9a4384b5666ec3503ee622edeb0c53869ab921 100644
--- a/chrome/browser/password_manager/password_store_factory.cc
+++ b/chrome/browser/password_manager/password_store_factory.cc
@@ -54,7 +54,7 @@ scoped_refptr<PasswordStore> PasswordStoreFactory::GetForProfile(
}
return static_cast<PasswordStore*>(
- GetInstance()->GetServiceForProfile(profile, true).get());
+ GetInstance()->GetServiceForBrowserContext(profile, true).get());
}
// static
@@ -63,9 +63,9 @@ PasswordStoreFactory* PasswordStoreFactory::GetInstance() {
}
PasswordStoreFactory::PasswordStoreFactory()
- : RefcountedProfileKeyedServiceFactory(
+ : RefcountedBrowserContextKeyedServiceFactory(
"PasswordStore",
- ProfileDependencyManager::GetInstance()) {
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(WebDataServiceFactory::GetInstance());
}
@@ -93,7 +93,7 @@ LocalProfileId PasswordStoreFactory::GetLocalProfileId(
}
#endif
-scoped_refptr<RefcountedProfileKeyedService>
+scoped_refptr<RefcountedBrowserContextKeyedService>
PasswordStoreFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = static_cast<Profile*>(context);

Powered by Google App Engine
This is Rietveld 408576698