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

Unified Diff: components/url_matcher/url_matcher.h

Issue 2443753003: Remove stl_util's deletion function use from components/url_matcher/. (Closed)
Patch Set: Created 4 years, 2 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: components/url_matcher/url_matcher.h
diff --git a/components/url_matcher/url_matcher.h b/components/url_matcher/url_matcher.h
index 0e92547928882012eb846782019dd8e5ba8d6168..adc4ee65d06a4bbbe7f835021c31a46527a071a5 100644
--- a/components/url_matcher/url_matcher.h
+++ b/components/url_matcher/url_matcher.h
@@ -215,8 +215,9 @@ class URL_MATCHER_EXPORT URLMatcherConditionFactory {
};
// Set to ensure that we generate only one StringPattern for each content
// of StringPattern::pattern().
- typedef std::set<StringPattern*, StringPatternPointerCompare>
- PatternSingletons;
+ using PatternSingletons = std::map<StringPattern*,
+ std::unique_ptr<StringPattern>,
+ StringPatternPointerCompare>;
PatternSingletons substring_pattern_singletons_;
PatternSingletons regex_pattern_singletons_;
PatternSingletons origin_and_path_regex_pattern_singletons_;

Powered by Google App Engine
This is Rietveld 408576698