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

Unified Diff: components/suggestions/suggestions_service.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: components/suggestions/suggestions_service.cc
diff --git a/components/suggestions/suggestions_service.cc b/components/suggestions/suggestions_service.cc
index ee9e9d2ed87a12bb22b3ec57757aa3308ec1236a..2cac4249b42293d899fea378c0d72a4693226a6e 100644
--- a/components/suggestions/suggestions_service.cc
+++ b/components/suggestions/suggestions_service.cc
@@ -178,8 +178,9 @@ void SuggestionsService::UndoBlacklistURL(
// static
bool SuggestionsService::GetBlacklistedUrl(const net::URLFetcher& request,
GURL* url) {
- bool is_blacklist_request = base::StartsWithASCII(
- request.GetOriginalURL().spec(), kSuggestionsBlacklistURLPrefix, true);
+ bool is_blacklist_request = base::StartsWith(
+ request.GetOriginalURL().spec(), kSuggestionsBlacklistURLPrefix,
+ base::CompareCase::SENSITIVE);
if (!is_blacklist_request) return false;
// Extract the blacklisted URL from the blacklist request.

Powered by Google App Engine
This is Rietveld 408576698