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

Issue 405383002: The consumer management enroll and unenroll buttons should only be visible to the device owner. (Closed)

Created:
6 years, 5 months ago by davidyu
Modified:
6 years, 5 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

The consumer management enroll and unenroll buttons should only be visible to the device owner. Shows the enroll button when the device is not enrolled, and shows the unenroll button when the device is enrolled. When the enroll button is clicked, sets a variable in the local state and reboots. TEST=maunally test the settings page. BUG=chromium:353050 R=bartfab@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285567

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : Fixed a cross-platform compilation error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -54 lines) Patch
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 3 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/resources/options/chromeos/consumer_management_overlay.js View 1 2 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/consumer_management_handler.h View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc View 1 2 3 2 chunks +16 lines, -24 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
davidyu
Next step: show a owner-only, online authentication-only signin page when consumer management enrollment is requested.
6 years, 5 months ago (2014-07-22 08:39:49 UTC) #1
bartfab (slow)
lgtm https://codereview.chromium.org/405383002/diff/20001/chrome/browser/resources/options/chromeos/consumer_management_overlay.js File chrome/browser/resources/options/chromeos/consumer_management_overlay.js (right): https://codereview.chromium.org/405383002/diff/20001/chrome/browser/resources/options/chromeos/consumer_management_overlay.js#newcode21 chrome/browser/resources/options/chromeos/consumer_management_overlay.js:21: $('unenroll-content').hidden = !($('enroll-content').hidden = isEnrolled); This line is ...
6 years, 5 months ago (2014-07-23 19:27:13 UTC) #2
davidyu
https://codereview.chromium.org/405383002/diff/20001/chrome/browser/resources/options/chromeos/consumer_management_overlay.js File chrome/browser/resources/options/chromeos/consumer_management_overlay.js (right): https://codereview.chromium.org/405383002/diff/20001/chrome/browser/resources/options/chromeos/consumer_management_overlay.js#newcode21 chrome/browser/resources/options/chromeos/consumer_management_overlay.js:21: $('unenroll-content').hidden = !($('enroll-content').hidden = isEnrolled); On 2014/07/23 19:27:13, bartfab ...
6 years, 5 months ago (2014-07-24 04:28:30 UTC) #3
davidyu
Hi Steven, Can you help review the UI changes? All these changes are guarded by ...
6 years, 5 months ago (2014-07-24 04:32:21 UTC) #4
bartfab (slow)
Still lgtm. https://codereview.chromium.org/405383002/diff/20001/chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc File chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc (right): https://codereview.chromium.org/405383002/diff/20001/chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc#newcode81 chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc:81: if (!user_manager) { On 2014/07/24 04:28:30, davidyu ...
6 years, 5 months ago (2014-07-24 11:54:53 UTC) #5
stevenjb
lgtm
6 years, 5 months ago (2014-07-24 18:26:07 UTC) #6
davidyu
https://codereview.chromium.org/405383002/diff/40001/chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc File chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc (right): https://codereview.chromium.org/405383002/diff/40001/chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc#newcode80 chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc:80: UserManager* user_manager = chromeos::UserManager::Get(); On 2014/07/24 11:54:53, bartfab wrote: ...
6 years, 5 months ago (2014-07-25 03:25:33 UTC) #7
davidyu
The CQ bit was checked by davidyu@chromium.org
6 years, 5 months ago (2014-07-25 03:25:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidyu@chromium.org/405383002/60001
6 years, 5 months ago (2014-07-25 03:26:45 UTC) #9
davidyu
The CQ bit was unchecked by davidyu@chromium.org
6 years, 5 months ago (2014-07-25 08:33:28 UTC) #10
davidyu
The CQ bit was checked by davidyu@chromium.org
6 years, 5 months ago (2014-07-25 08:40:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidyu@chromium.org/405383002/80001
6 years, 5 months ago (2014-07-25 08:41:56 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 12:21:33 UTC) #13
Message was sent while issue was closed.
Change committed as 285567

Powered by Google App Engine
This is Rietveld 408576698