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

Unified Diff: chrome/browser/autofill/personal_data_manager_factory.h

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/personal_data_manager_factory.h
diff --git a/chrome/browser/autofill/personal_data_manager_factory.h b/chrome/browser/autofill/personal_data_manager_factory.h
index 881eb536b786b6de78c41d96b02e2b8f33e29d04..fdff9e17dd90f14368b7fa08e215063a5bcd001e 100644
--- a/chrome/browser/autofill/personal_data_manager_factory.h
+++ b/chrome/browser/autofill/personal_data_manager_factory.h
@@ -19,7 +19,7 @@ class PersonalDataManager;
// A wrapper of PersonalDataManager so we can use it as a profiled keyed
// service. This should only be subclassed in tests, e.g. to provide a mock
// PersonalDataManager.
-class PersonalDataManagerService : public ProfileKeyedService {
+class PersonalDataManagerService : public BrowserContextKeyedService {
public:
virtual PersonalDataManager* GetPersonalDataManager() = 0;
};
@@ -28,7 +28,7 @@ class PersonalDataManagerService : public ProfileKeyedService {
// Profiles.
// Listens for the Profile's destruction notification and cleans up the
// associated PersonalDataManager.
-class PersonalDataManagerFactory : public ProfileKeyedServiceFactory {
+class PersonalDataManagerFactory : public BrowserContextKeyedServiceFactory {
public:
// Returns the PersonalDataManager for |profile|, creating it if it is not
// yet created.
@@ -42,8 +42,8 @@ class PersonalDataManagerFactory : public ProfileKeyedServiceFactory {
PersonalDataManagerFactory();
virtual ~PersonalDataManagerFactory();
- // ProfileKeyedServiceFactory:
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ // BrowserContextKeyedServiceFactory:
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698