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

Unified Diff: chrome/browser/local_discovery/device_description.cc

Issue 1214183008: Update StartsWith calls to use new versions in chrome and content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/browser/google/google_brand.cc ('k') | chrome/browser/media/router/media_source_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
}
« no previous file with comments | « chrome/browser/google/google_brand.cc ('k') | chrome/browser/media/router/media_source_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698