ChannelDelegated policy: if value is missing, assume it is false.
We missed another use of the same check. This should fix that call.
BUG=chromium:261400
TEST=unittests.
Change-Id: I88cb4d22905c4c7953c63fdafaa83bd7547dafa1
Reviewed-on: https://gerrit.chromium.org/gerrit/62498
Commit-Queue: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
diff --git a/update_attempter.cc b/update_attempter.cc
index 8d7e455..6809108 100644
--- a/update_attempter.cc
+++ b/update_attempter.cc
@@ -252,7 +252,7 @@
// is true, we'll ignore ReleaseChannel policy value.
if (device_policy) {
bool delegated = false;
- if (device_policy->GetReleaseChannelDelegated(&delegated) && delegated) {
+ if (!device_policy->GetReleaseChannelDelegated(&delegated) || delegated) {
LOG(INFO) << "Channel settings are delegated to user by policy. "
"Ignoring ReleaseChannel policy value";
}