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

Unified Diff: android_webview/native/aw_media_url_interceptor.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 | « android_webview/native/android_protocol_handler.cc ('k') | ash/wm/lock_state_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_media_url_interceptor.cc
diff --git a/android_webview/native/aw_media_url_interceptor.cc b/android_webview/native/aw_media_url_interceptor.cc
index 39e9b549e37546100d64f993f32fd109d4cc1224..fd85ffc5148d71feffc803df7b025a969c7641cd 100644
--- a/android_webview/native/aw_media_url_interceptor.cc
+++ b/android_webview/native/aw_media_url_interceptor.cc
@@ -20,7 +20,7 @@ bool AwMediaUrlInterceptor::Intercept(const std::string& url,
asset_file_prefix.append(url::kStandardSchemeSeparator);
asset_file_prefix.append(android_webview::kAndroidAssetPath);
- if (base::StartsWithASCII(url, asset_file_prefix, true)) {
+ if (base::StartsWith(url, asset_file_prefix, base::CompareCase::SENSITIVE)) {
std::string filename(url);
base::ReplaceFirstSubstringAfterOffset(
&filename, 0, asset_file_prefix, "assets/");
« no previous file with comments | « android_webview/native/android_protocol_handler.cc ('k') | ash/wm/lock_state_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698