If ReleaseChannelDelegated is unset, allow channel change.
BUG=chromium:251495
TEST=Unittests + -channel on device.
Change-Id: I46c739375ef37a24785e65d0229e46103b40b755
Reviewed-on: https://gerrit.chromium.org/gerrit/59130
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
Commit-Queue: Chris Sosa <sosa@chromium.org>
diff --git a/dbus_service.cc b/dbus_service.cc
index f90b90e..0a284fe 100644
--- a/dbus_service.cc
+++ b/dbus_service.cc
@@ -190,7 +190,7 @@
}
bool delegated = false;
- if (!(device_policy->GetReleaseChannelDelegated(&delegated) && delegated)) {
+ if (device_policy->GetReleaseChannelDelegated(&delegated) && !delegated) {
LOG(INFO) << "Cannot set target channel explicitly when channel "
"policy/settings is not delegated";
return FALSE;