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

Unified Diff: content/public/test/browser_test_utils.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/common/appcache_interfaces.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index bbae7f8c2f7792c1078ec47374371a29b09e8b22..f1542de698d87819e522b27c1a65bded1959b08a 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -234,7 +234,8 @@ scoped_ptr<net::test_server::HttpResponse> CrossSiteRedirectResponseHandler(
const GURL& server_base_url,
const net::test_server::HttpRequest& request) {
std::string prefix("/cross-site/");
- if (!base::StartsWithASCII(request.relative_url, prefix, true))
+ if (!base::StartsWith(request.relative_url, prefix,
+ base::CompareCase::SENSITIVE))
return scoped_ptr<net::test_server::HttpResponse>();
std::string params = request.relative_url.substr(prefix.length());
« no previous file with comments | « content/common/appcache_interfaces.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698