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

Unified Diff: chrome/browser/safe_browsing/protocol_manager.cc

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger 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 b1910d14b94fa2c2755317b521b3b8ccef374568..01aece1351a5689e3e52d71ef886881008e8ca6f 100644
--- a/chrome/browser/safe_browsing/protocol_manager.cc
+++ b/chrome/browser/safe_browsing/protocol_manager.cc
@@ -749,10 +749,10 @@ GURL SafeBrowsingProtocolManager::GetHashUrl() const {
GURL SafeBrowsingProtocolManager::NextChunkUrl(const std::string& url) const {
DCHECK(CalledOnValidThread());
std::string next_url;
- if (!StartsWithASCII(url, "http://", false) &&
- !StartsWithASCII(url, "https://", false)) {
+ if (!base::StartsWithASCII(url, "http://", false) &&
+ !base::StartsWithASCII(url, "https://", false)) {
// Use https if we updated via https, otherwise http (useful for testing).
- if (StartsWithASCII(url_prefix_, "https://", false))
+ if (base::StartsWithASCII(url_prefix_, "https://", false))
next_url.append("https://");
else
next_url.append("http://");

Powered by Google App Engine
This is Rietveld 408576698