| Index: chrome/browser/extensions/tab_helper.cc
|
| diff --git a/chrome/browser/extensions/tab_helper.cc b/chrome/browser/extensions/tab_helper.cc
|
| index 0052793c67107ac93bb63d3623da390b703f2f4a..e3c8c445b4538040338e0298e249db3e094ea483 100644
|
| --- a/chrome/browser/extensions/tab_helper.cc
|
| +++ b/chrome/browser/extensions/tab_helper.cc
|
| @@ -263,6 +263,8 @@
|
| IPC_MESSAGE_HANDLER(ExtensionHostMsg_Request, OnRequest)
|
| IPC_MESSAGE_HANDLER(ExtensionHostMsg_ContentScriptsExecuting,
|
| OnContentScriptsExecuting)
|
| + IPC_MESSAGE_HANDLER(ExtensionHostMsg_OnWatchedPageChange,
|
| + OnWatchedPageChange)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
| return handled;
|
| @@ -430,6 +432,15 @@
|
| OnScriptsExecuted(web_contents(), executing_scripts_map, on_url));
|
| }
|
|
|
| +void TabHelper::OnWatchedPageChange(
|
| + const std::vector<std::string>& css_selectors) {
|
| + if (ExtensionSystem::Get(profile_)->extension_service() &&
|
| + RulesRegistryService::Get(profile_)) {
|
| + RulesRegistryService::Get(profile_)->content_rules_registry()->Apply(
|
| + web_contents(), css_selectors);
|
| + }
|
| +}
|
| +
|
| void TabHelper::OnDetailedConsoleMessageAdded(
|
| const base::string16& message,
|
| const base::string16& source,
|
|
|