Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "enterprise: Update device license mode when device policy dat…
…a is This is a reland of commit 160a7de Reason of Revert was that EnterpriseDomainObserver was added more than once. Now `ScopedObservation` is used instead of calling addObservation directly and adding the observer is also moved to the ctor, which ensures that it'll happen only once. Revert CL: crrev.com/c/3655395 Original change's description: > enterprise: Update device license mode when device policy data is set > > Previously, the device license mode is not updated correctly as login > shelf view ctor is called before the policy is set. > > Inherit EnterpriseDomainObserver to update the device enterprise info when available. > > Bug: 1307303, 1327365 > Change-Id: Ie5cf63da93401ce5900f0d35f7396d0acf300271 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3650732 > Commit-Queue: Sherri Lin <sherrilin@google.com> > Reviewed-by: Denis Kuznetsov <antrim@chromium.org> > Reviewed-by: James Cook <jamescook@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1005422} (cherry picked from commit ea95dfc) Bug: 1307303, 1327365 Change-Id: I5b072cc76ddb4ca6dafea7407659c3556e8e2031 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3654231 Commit-Queue: Sherri Lin <sherrilin@google.com> Reviewed-by: Denis Kuznetsov <antrim@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1005887} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3660145 Cr-Commit-Position: refs/branch-heads/5060@{#179} Cr-Branched-From: b83393d-refs/heads/main@{#1002911}
- Loading branch information