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

Unified Diff: content/common/appcache_interfaces.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 | « content/child/site_isolation_stats_gatherer_browsertest.cc ('k') | content/test/image_decoder_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/appcache_interfaces.cc
diff --git a/content/common/appcache_interfaces.cc b/content/common/appcache_interfaces.cc
index fc1cb2bf402f81313b5538b2639b37ca239da9fa..5cb1064eb1362427e641fdba6ffd0b86d87a3456 100644
--- a/content/common/appcache_interfaces.cc
+++ b/content/common/appcache_interfaces.cc
@@ -6,6 +6,7 @@
#include <set>
+#include "base/strings/pattern.h"
#include "base/strings/string_util.h"
#include "content/public/common/url_constants.h"
#include "net/url_request/url_request.h"
@@ -105,7 +106,7 @@ bool AppCacheNamespace::IsMatch(const GURL& url) const {
std::string pattern = namespace_url.spec();
if (namespace_url.has_query())
base::ReplaceSubstringsAfterOffset(&pattern, 0, "?", "\\?");
- return MatchPattern(url.spec(), pattern);
+ return base::MatchPattern(url.spec(), pattern);
}
return base::StartsWithASCII(url.spec(), namespace_url.spec(), true);
}
« no previous file with comments | « content/child/site_isolation_stats_gatherer_browsertest.cc ('k') | content/test/image_decoder_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698