update_engine: Update libchrome APIs to r369476
The new libchrome has been ported from Chromium and some APIs have
changed. Make necessary changes at call sites.
Change-Id: I42e65bda7f1dbdf6f6e0ebf356d2cfea6b729193
diff --git a/omaha_request_params.cc b/omaha_request_params.cc
index d0011f7..3402451 100644
--- a/omaha_request_params.cc
+++ b/omaha_request_params.cc
@@ -124,12 +124,17 @@
}
bool OmahaRequestParams::CollectECFWVersions() const {
- return base::StartsWithASCII(hwid_, string("SAMS ALEX"), true) ||
- base::StartsWithASCII(hwid_, string("BUTTERFLY"), true) ||
- base::StartsWithASCII(hwid_, string("LUMPY"), true) ||
- base::StartsWithASCII(hwid_, string("PARROT"), true) ||
- base::StartsWithASCII(hwid_, string("SPRING"), true) ||
- base::StartsWithASCII(hwid_, string("SNOW"), true);
+ return base::StartsWith(hwid_, string("SAMS ALEX"),
+ base::CompareCase::SENSITIVE) ||
+ base::StartsWith(hwid_, string("BUTTERFLY"),
+ base::CompareCase::SENSITIVE) ||
+ base::StartsWith(hwid_, string("LUMPY"),
+ base::CompareCase::SENSITIVE) ||
+ base::StartsWith(hwid_, string("PARROT"),
+ base::CompareCase::SENSITIVE) ||
+ base::StartsWith(hwid_, string("SPRING"),
+ base::CompareCase::SENSITIVE) ||
+ base::StartsWith(hwid_, string("SNOW"), base::CompareCase::SENSITIVE);
}
bool OmahaRequestParams::SetTargetChannel(const string& new_target_channel,