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

Unified Diff: chromeos/system/version_loader.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: chromeos/system/version_loader.cc
diff --git a/chromeos/system/version_loader.cc b/chromeos/system/version_loader.cc
index 4e6272c27e477d58b3479b204c7db2aba046b9bd..a5604d8f16d176160598ea8d3adcce314bfb2766 100644
--- a/chromeos/system/version_loader.cc
+++ b/chromeos/system/version_loader.cc
@@ -78,7 +78,8 @@ std::string ParseFirmware(const std::string& contents) {
std::vector<std::string> lines;
base::SplitString(contents, '\n', &lines);
for (size_t i = 0; i < lines.size(); ++i) {
- if (base::StartsWithASCII(lines[i], kFirmwarePrefix, false)) {
+ if (base::StartsWith(lines[i], kFirmwarePrefix,
+ base::CompareCase::INSENSITIVE_ASCII)) {
std::string str = lines[i].substr(std::string(kFirmwarePrefix).size());
size_t found = str.find_first_not_of("| ");
if (found != std::string::npos)
« no previous file with comments | « chromeos/settings/cros_settings_provider.cc ('k') | components/autofill/content/renderer/form_autofill_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698