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

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

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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/api/declarative_content/chrome_content_rules_registry.h
diff --git a/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h b/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h
index e6f63434d87f451230ea0bd2e86ef55853251a2f..a96c42a60dcad907f6aeb7544bdb9932d14b812f 100644
--- a/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h
+++ b/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h
@@ -50,7 +50,7 @@ namespace extensions {
//
// Here is the high level overview of this functionality:
//
-// core_api::events::Rule consists of conditions and actions, these are
+// api::events::Rule consists of conditions and actions, these are
// represented as a ContentRule with ContentConditions and ContentRuleActions.
//
// The evaluation of URL related condition attributes (host_suffix, path_prefix)
@@ -84,7 +84,7 @@ class ChromeContentRulesRegistry
// RulesRegistry:
std::string AddRulesImpl(
const std::string& extension_id,
- const std::vector<linked_ptr<core_api::events::Rule>>& rules) override;
+ const std::vector<linked_ptr<api::events::Rule>>& rules) override;
std::string RemoveRulesImpl(
const std::string& extension_id,
const std::vector<std::string>& rule_identifiers) override;
@@ -156,10 +156,9 @@ class ChromeContentRulesRegistry
// and ContentAction. |extension| may be NULL in tests. If |error| is empty,
// the translation was successful and the returned rule is internally
// consistent.
- scoped_ptr<const ContentRule> CreateRule(
- const Extension* extension,
- const core_api::events::Rule& api_rule,
- std::string* error);
+ scoped_ptr<const ContentRule> CreateRule(const Extension* extension,
+ const api::events::Rule& api_rule,
+ std::string* error);
// True if this object is managing the rules for |context|.
bool ManagingRulesForBrowserContext(content::BrowserContext* context);

Powered by Google App Engine
This is Rietveld 408576698