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://"); |