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

Unified Diff: chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc

Issue 822453002: Introduce HostID and de-couple Extensions from "script injection System" [browser side] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative_content/content_action.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
diff --git a/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc b/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
index aca2cd6ea71b3a4a9578a76cde57ebb2852e9bd3..bdfbd68c08622eb24329772c73742e8d6754c1df 100644
--- a/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
+++ b/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
@@ -168,6 +168,7 @@ std::string ChromeContentRulesRegistry::AddRulesImpl(
scoped_ptr<ContentRule> content_rule(
ContentRule::Create(url_matcher_.condition_factory(), browser_context(),
+ HostID(HostID::EXTENSIONS, extension->id()),
extension, extension_installation_time, *rule,
ContentRule::ConsistencyChecker(), &error));
if (!error.empty()) {
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative_content/content_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698