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. |