Commit 840703a4 authored by Weidong Guo's avatar Weidong Guo Committed by chrome-bot
Browse files

Fix update over cellular network on guest account

Device policy is not loaded for guest account. When a user check for
update over cellular network, the update engine does not allow so.

Changes:
Allow updates over cellular in IsUpdateAllowedOver() if device policy is
not loaded, because this should be treated the same as device policy
having not update setting.
Overwrite decision made by IsUpdateAllowedOver() with user preferences
if device policy is not loaded or does not have update setting.

BUG=chromium:799185
TEST=ConnectionManagerTest.AllowUpdatesOver3GIfPolicyFailsToBeLoaded
Change-Id: Ica96384f87a07a03caafbe000ee62edf8132ce6d
Reviewed-on: https://chromium-review.googlesource.com/851733


Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: default avatarWeidong Guo <weidongg@chromium.org>
Reviewed-by: default avatarAmin Hassani <ahassani@chromium.org>
Reviewed-by: default avatarBen Chan <benchan@chromium.org>
Reviewed-by: default avatarSen Jiang <senj@chromium.org>
parent b05a65a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment