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

Unified Diff: components/html_viewer/web_url_loader_impl.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
Index: components/html_viewer/web_url_loader_impl.cc
diff --git a/components/html_viewer/web_url_loader_impl.cc b/components/html_viewer/web_url_loader_impl.cc
index 48d291ffb6f68770802f55c464b1001eaaa9ed3c..0fa6b8e95c06a0936f00310ff1603b7707fac7e5 100644
--- a/components/html_viewer/web_url_loader_impl.cc
+++ b/components/html_viewer/web_url_loader_impl.cc
@@ -30,10 +30,12 @@ blink::WebURLResponse::HTTPVersion StatusLineToHTTPVersion(
if (status_line.is_null())
return blink::WebURLResponse::HTTP_0_9;
- if (base::StartsWithASCII(status_line, "HTTP/1.0", true))
+ if (base::StartsWith(status_line.get(), "HTTP/1.0",
+ base::CompareCase::SENSITIVE))
return blink::WebURLResponse::HTTP_1_0;
- if (base::StartsWithASCII(status_line, "HTTP/1.1", true))
+ if (base::StartsWith(status_line.get(), "HTTP/1.1",
+ base::CompareCase::SENSITIVE))
return blink::WebURLResponse::HTTP_1_1;
return blink::WebURLResponse::Unknown;
« no previous file with comments | « components/html_viewer/web_mime_registry_impl.cc ('k') | components/invalidation/impl/gcm_network_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698