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

Unified Diff: chrome/browser/local_discovery/device_description.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/local_discovery/device_description.cc
diff --git a/chrome/browser/local_discovery/device_description.cc b/chrome/browser/local_discovery/device_description.cc
index b9a3dda6cac28775a3cc7a990d24842be8243c63..f3bd4974a293c21adc381d660f348b061c0509d1 100644
--- a/chrome/browser/local_discovery/device_description.cc
+++ b/chrome/browser/local_discovery/device_description.cc
@@ -19,7 +19,8 @@ std::string GetValueByName(const std::vector<std::string>& metadata,
const std::string& name) {
std::string prefix(name + "=");
for (const std::string& record : metadata) {
- if (base::StartsWithASCII(record, prefix, false)) {
+ if (base::StartsWith(record, prefix,
+ base::CompareCase::INSENSITIVE_ASCII)) {
return record.substr(prefix.size());
}
}

Powered by Google App Engine
This is Rietveld 408576698