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

Unified Diff: components/domain_reliability/config.cc

Issue 1226673003: Move MatchPattern to its own header and the base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome_elf/elf_imports_unittest.cc ('k') | content/browser/accessibility/accessibility_tree_formatter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/config.cc
diff --git a/components/domain_reliability/config.cc b/components/domain_reliability/config.cc
index 6f47154e73ab37551c4de1316c7b215d68d370c4..8c2935c37119bb66913fead4224addce2307d667 100644
--- a/components/domain_reliability/config.cc
+++ b/components/domain_reliability/config.cc
@@ -15,6 +15,7 @@
#include "base/json/json_value_converter.h"
#include "base/profiler/scoped_tracker.h"
#include "base/rand_util.h"
+#include "base/strings/pattern.h"
#include "base/strings/string_util.h"
namespace {
@@ -41,7 +42,7 @@ bool DomainReliabilityConfig::Resource::MatchesUrl(const GURL& url) const {
const std::string& spec = url.spec();
for (const auto& url_pattern : url_patterns) {
- if (MatchPattern(spec, *url_pattern))
+ if (base::MatchPattern(spec, *url_pattern))
return true;
}
« no previous file with comments | « chrome_elf/elf_imports_unittest.cc ('k') | content/browser/accessibility/accessibility_tree_formatter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698