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

Unified Diff: extensions/browser/api/web_request/web_request_api.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: extensions/browser/api/web_request/web_request_api.cc
diff --git a/extensions/browser/api/web_request/web_request_api.cc b/extensions/browser/api/web_request/web_request_api.cc
index 1290440886d69568343617a133cb82e086a97464..88212320ef6a97acc281b35745777b37af4836ee 100644
--- a/extensions/browser/api/web_request/web_request_api.cc
+++ b/extensions/browser/api/web_request/web_request_api.cc
@@ -137,8 +137,9 @@ int GetFrameId(bool is_main_frame, int frame_id) {
bool IsWebRequestEvent(const std::string& event_name) {
std::string web_request_event_name(event_name);
- if (base::StartsWithASCII(web_request_event_name,
- webview::kWebViewEventPrefix, true)) {
+ if (base::StartsWith(web_request_event_name,
+ webview::kWebViewEventPrefix,
+ base::CompareCase::SENSITIVE)) {
web_request_event_name.replace(
0, strlen(webview::kWebViewEventPrefix), kWebRequestEventPrefix);
}
« no previous file with comments | « extensions/browser/api/cast_channel/logger.cc ('k') | extensions/browser/guest_view/web_view/web_view_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698