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

Unified Diff: chrome/browser/safe_browsing/protocol_manager.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/safe_browsing/protocol_manager.cc
diff --git a/chrome/browser/safe_browsing/protocol_manager.cc b/chrome/browser/safe_browsing/protocol_manager.cc
index 01aece1351a5689e3e52d71ef886881008e8ca6f..8415327117fa65d1702ffd5044186d666468c5ca 100644
--- a/chrome/browser/safe_browsing/protocol_manager.cc
+++ b/chrome/browser/safe_browsing/protocol_manager.cc
@@ -749,10 +749,13 @@ GURL SafeBrowsingProtocolManager::GetHashUrl() const {
GURL SafeBrowsingProtocolManager::NextChunkUrl(const std::string& url) const {
DCHECK(CalledOnValidThread());
std::string next_url;
- if (!base::StartsWithASCII(url, "http://", false) &&
- !base::StartsWithASCII(url, "https://", false)) {
+ if (!base::StartsWith(url, "http://",
+ base::CompareCase::INSENSITIVE_ASCII) &&
+ !base::StartsWith(url, "https://",
+ base::CompareCase::INSENSITIVE_ASCII)) {
// Use https if we updated via https, otherwise http (useful for testing).
- if (base::StartsWithASCII(url_prefix_, "https://", false))
+ if (base::StartsWith(url_prefix_, "https://",
+ base::CompareCase::INSENSITIVE_ASCII))
next_url.append("https://");
else
next_url.append("http://");

Powered by Google App Engine
This is Rietveld 408576698