Decouple URL matching from CSS and bookmark state matching in ChromeContentRulesRegistry
commitd20b1f09ea33b915961315a87be322709b533cb0
authorwittman <wittman@chromium.org>
Mon, 27 Jul 2015 23:14:07 +0000 (27 16:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Jul 2015 23:14:50 +0000 (27 23:14 +0000)
tree86329d1c0b8544683e5fc3f9a2fdda27a7a3a750
parent815e3f5e65890ec6de81e9f9455a87c9d88b53da
Decouple URL matching from CSS and bookmark state matching in ChromeContentRulesRegistry

Eliminates the need to have a URL match condition registered in order to use any
other match types. This is a prerequisite for abstracting out independent
predicates for the different types of matching.

This is in support of step 6 in the associated bug. No functional change is
intended.

BUG=492946

Review URL: https://codereview.chromium.org/1255483002

Cr-Commit-Position: refs/heads/master@{#340598}
chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h
chrome/browser/extensions/api/declarative_content/content_condition.cc
chrome/browser/extensions/api/declarative_content/content_condition.h
chrome/browser/extensions/api/declarative_content/content_condition_unittest.cc