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

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

Issue 9830001: Initialize SubstringSetMatcher on construction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative/substring_set_matcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/declarative/substring_set_matcher.cc
diff --git a/chrome/browser/extensions/api/declarative/substring_set_matcher.cc b/chrome/browser/extensions/api/declarative/substring_set_matcher.cc
index 94e2254cfc5c0287a54bfacb3c9d7fd2d7cdcd15..847fff9099a567b41cfb629f293d703c76c2b064 100644
--- a/chrome/browser/extensions/api/declarative/substring_set_matcher.cc
+++ b/chrome/browser/extensions/api/declarative/substring_set_matcher.cc
@@ -31,7 +31,9 @@ bool SubstringPattern::operator<(const SubstringPattern& rhs) const {
// SubstringSetMatcher
//
-SubstringSetMatcher::SubstringSetMatcher() {}
+SubstringSetMatcher::SubstringSetMatcher() {
+ RebuildAhoCorasickTree();
+}
SubstringSetMatcher::~SubstringSetMatcher() {}
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative/substring_set_matcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698