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

Unified Diff: content/common/appcache_interfaces.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y 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/simple_webmimeregistry_impl.cc ('k') | content/public/test/browser_test_utils.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 5cb1064eb1362427e641fdba6ffd0b86d87a3456..af0d8c1688336dc07344dd4c7dffb2053435622b 100644
--- a/content/common/appcache_interfaces.cc
+++ b/content/common/appcache_interfaces.cc
@@ -108,7 +108,8 @@ bool AppCacheNamespace::IsMatch(const GURL& url) const {
base::ReplaceSubstringsAfterOffset(&pattern, 0, "?", "\\?");
return base::MatchPattern(url.spec(), pattern);
}
- return base::StartsWithASCII(url.spec(), namespace_url.spec(), true);
+ return base::StartsWith(url.spec(), namespace_url.spec(),
+ base::CompareCase::SENSITIVE);
}
bool IsSchemeSupportedForAppCache(const GURL& url) {
« no previous file with comments | « content/child/simple_webmimeregistry_impl.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698