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

Unified Diff: android_webview/native/android_protocol_handler.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 | « no previous file | android_webview/native/aw_media_url_interceptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/android_protocol_handler.cc
diff --git a/android_webview/native/android_protocol_handler.cc b/android_webview/native/android_protocol_handler.cc
index aaadb14cc2bffdf3007ce0712152fcd716a6ca5d..b9f795ad8da664abd84ee47e96128c746dbf2250 100644
--- a/android_webview/native/android_protocol_handler.cc
+++ b/android_webview/native/android_protocol_handler.cc
@@ -252,8 +252,8 @@ bool AssetFileRequestInterceptor::ShouldHandleRequest(
return false;
const std::string& url = request->url().spec();
- if (!base::StartsWithASCII(url, asset_prefix_, /*case_sensitive=*/ true) &&
- !base::StartsWithASCII(url, resource_prefix_, /*case_sensitive=*/ true)) {
+ if (!base::StartsWith(url, asset_prefix_, base::CompareCase::SENSITIVE) &&
+ !base::StartsWith(url, resource_prefix_, base::CompareCase::SENSITIVE)) {
return false;
}
« no previous file with comments | « no previous file | android_webview/native/aw_media_url_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698