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

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

Issue 28273006: <webview>: Implement declarativeWebRequest API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests Created 7 years, 2 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 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)

Powered by Google App Engine
This is Rietveld 408576698