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

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: 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/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..d56c5581efab25beb779cbd6e3a233d1b14d3839 100644
--- a/chrome/browser/history/shortcuts_backend_factory.h
+++ b/chrome/browser/history/shortcuts_backend_factory.h
@@ -17,7 +17,8 @@ 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 +29,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,9 +43,9 @@ class ShortcutsBackendFactory : public RefcountedProfileKeyedServiceFactory {
ShortcutsBackendFactory();
virtual ~ShortcutsBackendFactory();
- // ProfileKeyedServiceFactory:
- virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor(
- content::BrowserContext* profile) const OVERRIDE;
+ // 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