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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_service.h

Issue 171813010: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 1). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context_ Created 6 years, 10 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/extensions/api/declarative/rules_registry_service.h
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_service.h b/chrome/browser/extensions/api/declarative/rules_registry_service.h
index 058367a7c4e7ffc90215cbbb63dfeb1537acacd3..6a27eaf11e47c059145b596a1866780d65e0b2ff 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry_service.h
+++ b/chrome/browser/extensions/api/declarative/rules_registry_service.h
@@ -21,7 +21,7 @@
class Profile;
namespace content {
-class NotificationSource;
+class BrowserContext;
class NotificationSource;
}
@@ -53,7 +53,7 @@ class RulesRegistryService : public ProfileKeyedAPI,
}
};
- explicit RulesRegistryService(Profile* profile);
+ explicit RulesRegistryService(content::BrowserContext* context);
virtual ~RulesRegistryService();
// Unregisters refptrs to concrete RulesRegistries at other objects that were
@@ -64,7 +64,7 @@ class RulesRegistryService : public ProfileKeyedAPI,
static ProfileKeyedAPIFactory<RulesRegistryService>* GetFactoryInstance();
// Convenience method to get the RulesRegistryService for a profile.
- static RulesRegistryService* Get(Profile* profile);
+ static RulesRegistryService* Get(content::BrowserContext* context);
// Registers the default RulesRegistries used in Chromium.
void EnsureDefaultRulesRegistriesRegistered(const WebViewKey& webview_key);

Powered by Google App Engine
This is Rietveld 408576698