| Index: chrome/browser/extensions/tab_helper.cc
|
| diff --git a/chrome/browser/extensions/tab_helper.cc b/chrome/browser/extensions/tab_helper.cc
|
| index 63ce4be7d34a2f0e83e65d0f949a8ce1c271d341..16709d9efcca1d1cc142f1b907a531319b590d33 100644
|
| --- a/chrome/browser/extensions/tab_helper.cc
|
| +++ b/chrome/browser/extensions/tab_helper.cc
|
| @@ -199,7 +199,8 @@ void TabHelper::DidNavigateMainFrame(
|
| #if defined(ENABLE_EXTENSIONS)
|
| if (ExtensionSystem::Get(profile_)->extension_service() &&
|
| RulesRegistryService::Get(profile_)) {
|
| - RulesRegistryService::Get(profile_)->content_rules_registry()->
|
| + RulesRegistryService::Get(profile_)->GetContentRulesRegistry(
|
| + RulesRegistryService::WebViewKey(0, 0))->
|
| DidNavigateMainFrame(web_contents(), details, params);
|
| }
|
| #endif // defined(ENABLE_EXTENSIONS)
|
| @@ -351,7 +352,8 @@ void TabHelper::OnWatchedPageChange(
|
| #if defined(ENABLE_EXTENSIONS)
|
| if (ExtensionSystem::Get(profile_)->extension_service() &&
|
| RulesRegistryService::Get(profile_)) {
|
| - RulesRegistryService::Get(profile_)->content_rules_registry()->Apply(
|
| + RulesRegistryService::Get(profile_)->GetContentRulesRegistry(
|
| + RulesRegistryService::WebViewKey(0, 0))->Apply(
|
| web_contents(), css_selectors);
|
| }
|
| #endif // defined(ENABLE_EXTENSIONS)
|
|
|