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

Unified Diff: chrome/browser/history/shortcuts_backend_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: 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/history/shortcuts_backend_factory.h
diff --git a/chrome/browser/history/shortcuts_backend_factory.h b/chrome/browser/history/shortcuts_backend_factory.h
index 78ee8886c4ae956fb7644c447dbb6edb27b47c25..aa8264ad1d46b19438a36ec433a33a52313884a4 100644
--- a/chrome/browser/history/shortcuts_backend_factory.h
+++ b/chrome/browser/history/shortcuts_backend_factory.h
@@ -17,7 +17,7 @@ class ShortcutsBackend;
// Singleton that owns all instances of ShortcutsBackend and associates them
// with Profiles.
-class ShortcutsBackendFactory : public RefcountedProfileKeyedServiceFactory {
+class ShortcutsBackendFactory : public RefcountedBrowserContextKeyedServiceFactory {
public:
static scoped_refptr<history::ShortcutsBackend> GetForProfile(
Profile* profile);
@@ -28,12 +28,12 @@ class ShortcutsBackendFactory : public RefcountedProfileKeyedServiceFactory {
static ShortcutsBackendFactory* GetInstance();
// Creates and returns a backend for testing purposes.
- static scoped_refptr<RefcountedProfileKeyedService>
+ static scoped_refptr<RefcountedBrowserContextKeyedService>
BuildProfileForTesting(content::BrowserContext* profile);
// Creates and returns a backend but without creating its persistent database
// for testing purposes.
- static scoped_refptr<RefcountedProfileKeyedService>
+ static scoped_refptr<RefcountedBrowserContextKeyedService>
BuildProfileNoDatabaseForTesting(content::BrowserContext* profile);
private:
@@ -42,8 +42,8 @@ class ShortcutsBackendFactory : public RefcountedProfileKeyedServiceFactory {
ShortcutsBackendFactory();
virtual ~ShortcutsBackendFactory();
- // ProfileKeyedServiceFactory:
- virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor(
+ // BrowserContextKeyedServiceFactory:
+ virtual scoped_refptr<RefcountedBrowserContextKeyedService> BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
};

Powered by Google App Engine
This is Rietveld 408576698