update_engine: fixed warnings from cpplint
Fixed all the cpplint warnings in update engine.
BUG=None
TEST=Unit tests still pass.
Change-Id: I285ae858eec8abe0b26ff203b99a42a200ceb71c
Reviewed-on: https://chromium-review.googlesource.com/204027
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
diff --git a/omaha_request_params.cc b/omaha_request_params.cc
index 667ed46..73117a4 100644
--- a/omaha_request_params.cc
+++ b/omaha_request_params.cc
@@ -114,14 +114,14 @@
}
bool OmahaRequestParams::CollectECFWVersions() const {
- return (
+ return {
StartsWithASCII(hwid_, string("SAMS ALEX"), true) ||
StartsWithASCII(hwid_, string("BUTTERFLY"), true) ||
StartsWithASCII(hwid_, string("LUMPY"), true) ||
StartsWithASCII(hwid_, string("PARROT"), true) ||
StartsWithASCII(hwid_, string("SPRING"), true) ||
StartsWithASCII(hwid_, string("SNOW"), true)
- );
+ };
}
bool OmahaRequestParams::SetTargetChannel(const std::string& new_target_channel,
@@ -179,8 +179,8 @@
string is_powerwash_allowed_str = GetLsbValue(
kIsPowerwashAllowedKey,
"false",
- NULL, // no need to validate
- true); // always get it from stateful, as that's the only place it'll be
+ NULL, // no need to validate
+ true); // always get it from stateful, as that's the only place it'll be
bool is_powerwash_allowed_new_value = (is_powerwash_allowed_str == "true");
if (is_powerwash_allowed_ != is_powerwash_allowed_new_value) {
is_powerwash_allowed_ = is_powerwash_allowed_new_value;