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

Unified Diff: chrome/browser/net/safe_search_util.cc

Issue 1220963005: Update base::StartsWith calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 6 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: chrome/browser/net/safe_search_util.cc
diff --git a/chrome/browser/net/safe_search_util.cc b/chrome/browser/net/safe_search_util.cc
index 86862cd1429193e39fbecbbdb9137ced1e743e28..9e34a64b9725cd3fceece49eac8115fadf46d1dc 100644
--- a/chrome/browser/net/safe_search_util.cc
+++ b/chrome/browser/net/safe_search_util.cc
@@ -38,7 +38,8 @@ bool HasSameParameterKey(const std::string& first_parameter,
// Prefix for "foo=bar" is "foo=".
std::string parameter_prefix = second_parameter.substr(
0, second_parameter.find("=") + 1);
- return base::StartsWithASCII(first_parameter, parameter_prefix, false);
+ return base::StartsWith(first_parameter, parameter_prefix,
+ base::CompareCase::INSENSITIVE_ASCII);
}
// Examines the query string containing parameters and adds the necessary ones

Powered by Google App Engine
This is Rietveld 408576698