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

Unified Diff: components/variations/net/variations_http_header_provider.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/variations/net/variations_http_header_provider.cc
diff --git a/components/variations/net/variations_http_header_provider.cc b/components/variations/net/variations_http_header_provider.cc
index 583d77ac65cfc809b4276e4d8d7eef1b68ace1eb..f94ad2c953a126c38368cb6195b860ae94a7e988 100644
--- a/components/variations/net/variations_http_header_provider.cc
+++ b/components/variations/net/variations_http_header_provider.cc
@@ -97,7 +97,7 @@ bool VariationsHttpHeaderProvider::SetDefaultVariationIds(
default_trigger_id_set_.clear();
return false;
}
- bool trigger_id = base::StartsWithASCII(*it, "t", true);
+ bool trigger_id = base::StartsWith(*it, "t", base::CompareCase::SENSITIVE);
// Remove the "t" prefix if it's there.
std::string entry = trigger_id ? it->substr(1) : *it;

Powered by Google App Engine
This is Rietveld 408576698