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

Unified Diff: chrome/browser/extensions/tab_helper.cc

Issue 13825014: Change RulesRegistryService to use ProfileKeyedAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Took out rules_registry() from TestExtensionSystem Created 7 years, 8 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/tab_helper.cc
diff --git a/chrome/browser/extensions/tab_helper.cc b/chrome/browser/extensions/tab_helper.cc
index 5fb4541428f4c6b02088f7298493cf44eadab1ef..703ff800b87db99fb72f7301c23cf282e0936b48 100644
--- a/chrome/browser/extensions/tab_helper.cc
+++ b/chrome/browser/extensions/tab_helper.cc
@@ -88,9 +88,8 @@ TabHelper::TabHelper(content::WebContents* web_contents)
script_executor_(new ScriptExecutor(web_contents,
&script_execution_observers_)),
rules_registry_service_(
- ExtensionSystem::Get(
- Profile::FromBrowserContext(web_contents->GetBrowserContext()))->
- rules_registry_service()),
+ ProfileKeyedAPIFactory<RulesRegistryService>::GetForProfile(
+ Profile::FromBrowserContext(web_contents->GetBrowserContext()))),
ALLOW_THIS_IN_INITIALIZER_LIST(image_loader_ptr_factory_(this)) {
// The ActiveTabPermissionManager requires a session ID; ensure this
// WebContents has one.

Powered by Google App Engine
This is Rietveld 408576698