Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Issue 2902183002: Improve determination of managed state in DeviceSettingsProvider (Closed)

Created:
3 years, 7 months ago by Thiemo Nagel
Modified:
3 years, 6 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve determination of managed state in DeviceSettingsProvider Use PolicyData::management_mode to determine whether the device has a local owner and only fall back to DM token in case management_mode is unset. That way, the correct determination is guaranteed for both cloud and Active Directory management. (Currently, the code is not broken because AD policy doesn't include a user name, but that might change in the future.) Also update the PolicyData::management_mode documentation to include Active Directory. BUG=722799 Review-Url: https://codereview.chromium.org/2902183002 Cr-Commit-Position: refs/heads/master@{#476239} Committed: https://chromium.googlesource.com/chromium/src/+/92db6b2c14f28d8339590ea4c6a0186d9bbf08c5

Patch Set 1 #

Patch Set 2 : Improved proto docs #

Patch Set 3 : Minor improvements #

Total comments: 12

Patch Set 4 : Addressed comments #

Total comments: 2

Patch Set 5 : Refactor logic to make it more readable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M chrome/browser/chromeos/settings/device_settings_provider.cc View 1 2 3 4 1 chunk +11 lines, -1 line 0 comments Download
M components/policy/proto/device_management_backend.proto View 1 2 3 2 chunks +9 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (21 generated)
Thiemo Nagel
Hey Lutz, could you please take a look? Thank you, Thiemo
3 years, 7 months ago (2017-05-24 16:38:24 UTC) #5
ljusten (tachyonic)
LGTM with nits (but I'm not a reviewer). https://codereview.chromium.org/2902183002/diff/40001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): https://codereview.chromium.org/2902183002/diff/40001/chrome/browser/chromeos/settings/device_settings_provider.cc#newcode745 chrome/browser/chromeos/settings/device_settings_provider.cc:745: // ...
3 years, 6 months ago (2017-05-29 12:43:02 UTC) #10
Thiemo Nagel
On 2017/05/29 12:43:02, ljusten (instantaneous) wrote: > LGTM with nits Thank you! > (but I'm ...
3 years, 6 months ago (2017-05-29 15:06:40 UTC) #13
Thiemo Nagel
Hey Roman, could you please take a look? Thank you! Thiemo https://codereview.chromium.org/2902183002/diff/40001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): ...
3 years, 6 months ago (2017-05-29 15:07:17 UTC) #15
Roman Sorokin (ftl)
https://codereview.chromium.org/2902183002/diff/60001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): https://codereview.chromium.org/2902183002/diff/60001/chrome/browser/chromeos/settings/device_settings_provider.cc#newcode747 chrome/browser/chromeos/settings/device_settings_provider.cc:747: bool unmanaged = false; why not "managed = true" ...
3 years, 6 months ago (2017-05-29 16:19:53 UTC) #18
ljusten (tachyonic)
https://codereview.chromium.org/2902183002/diff/40001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): https://codereview.chromium.org/2902183002/diff/40001/chrome/browser/chromeos/settings/device_settings_provider.cc#newcode745 chrome/browser/chromeos/settings/device_settings_provider.cc:745: // Determine whether device is unmanaged. See PolicyData::management_mode On ...
3 years, 6 months ago (2017-05-30 08:55:11 UTC) #19
Thiemo Nagel
Roman, Lutz, thank you for your comments. I've tried to make the code more readable. ...
3 years, 6 months ago (2017-05-30 12:25:07 UTC) #22
Roman Sorokin (ftl)
lgtm
3 years, 6 months ago (2017-05-30 12:29:58 UTC) #23
Thiemo Nagel
On 2017/05/30 12:29:58, Roman Sorokin (ftl) wrote: > lgtm Thank you!
3 years, 6 months ago (2017-06-01 08:55:57 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2902183002/80001
3 years, 6 months ago (2017-06-01 08:56:12 UTC) #29
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 09:47:50 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/92db6b2c14f28d8339590ea4c6a0...

Powered by Google App Engine
This is Rietveld 408576698