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

Unified Diff: chrome/browser/extensions/api/declarative/url_matcher.cc

Issue 9820003: Implementation of beginning of Declarative Web Request API backend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pacify clang Created 8 years, 9 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/url_matcher.cc
diff --git a/chrome/browser/extensions/api/declarative/url_matcher.cc b/chrome/browser/extensions/api/declarative/url_matcher.cc
index af8e4657f652f4d014646a48f08433fc0d4ae14f..91ee8b55c7ac3468def1e2b71ab4fdf938cd3d61 100644
--- a/chrome/browser/extensions/api/declarative/url_matcher.cc
+++ b/chrome/browser/extensions/api/declarative/url_matcher.cc
@@ -445,6 +445,10 @@ void URLMatcher::RemoveConditionSets(
UpdateInternalDatastructures();
}
+void URLMatcher::ClearUnusedConditionSets() {
+ UpdateConditionFactory();
+}
+
std::set<URLMatcherConditionSet::ID> URLMatcher::MatchURL(const GURL& url) {
// Find all IDs of SubstringPatterns that match |url|.
// See URLMatcherConditionFactory for the canonicalization of URLs and the

Powered by Google App Engine
This is Rietveld 408576698