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

Issue 493613002: Add an enrolling state for consumer management section in settings page. (Closed)

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

Description

Add an enrolling state for consumer management section in settings page. When the enrollment is in progress, the button shows "Enrolling..." and is disabled. Also made BrowserOptionsHandler an observer of ConsumerManagementService, so that the settings page is updated when the enrollment state is changed. BUG=chromium:353050 TEST=unit_tests Committed: https://crrev.com/51ffb80c42001d78b3728e9b13cac6fd57b1a6fc Cr-Commit-Position: refs/heads/master@{#294323}

Patch Set 1 #

Total comments: 36

Patch Set 2 : #

Total comments: 28

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 4

Patch Set 5 #

Patch Set 6 : #

Patch Set 7 : Fixed the unit test. #

Total comments: 14

Patch Set 8 : #

Total comments: 6

Patch Set 9 : #

Patch Set 10 : Fixed broken browser tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -150 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/consumer_management_service.h View 1 2 3 4 5 6 7 6 chunks +85 lines, -28 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_management_service.cc View 1 2 3 4 8 chunks +108 lines, -38 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_management_service_unittest.cc View 1 2 3 4 5 6 12 chunks +98 lines, -35 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 5 6 7 8 9 2 chunks +39 lines, -9 lines 0 comments Download
M chrome/browser/resources/options/chromeos/consumer_management_overlay.html View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/chromeos/consumer_management_overlay.js View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 8 9 8 chunks +28 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 44 (10 generated)
davidyu
6 years, 4 months ago (2014-08-20 08:29:19 UTC) #1
bartfab (slow)
https://codereview.chromium.org/493613002/diff/1/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/493613002/diff/1/chrome/app/chromeos_strings.grdp#newcode5717 chrome/app/chromeos_strings.grdp:5717: <message name="IDS_OPTIONS_CONSUMER_MANAGEMENT_ENROLL_BUTTON" desc="The text of the consumer management button ...
6 years, 4 months ago (2014-08-20 14:40:03 UTC) #2
davidyu
I renamed the old enum to EnrollmentStage and called the new one Status. https://codereview.chromium.org/493613002/diff/1/chrome/app/chromeos_strings.grdp File ...
6 years, 4 months ago (2014-08-21 09:40:30 UTC) #3
bartfab (slow)
https://codereview.chromium.org/493613002/diff/20001/chrome/browser/chromeos/policy/consumer_management_service.cc File chrome/browser/chromeos/policy/consumer_management_service.cc (right): https://codereview.chromium.org/493613002/diff/20001/chrome/browser/chromeos/policy/consumer_management_service.cc#newcode11 chrome/browser/chromeos/policy/consumer_management_service.cc:11: #include "base/macros.h" Nit: Already included by the header file. ...
6 years, 4 months ago (2014-08-21 11:39:36 UTC) #4
bartfab (slow)
Sorry, I reviewed the CLs in the wrong order today and put some comments here ...
6 years, 4 months ago (2014-08-21 11:54:27 UTC) #5
davidyu
https://codereview.chromium.org/493613002/diff/20001/chrome/browser/chromeos/policy/consumer_management_service.cc File chrome/browser/chromeos/policy/consumer_management_service.cc (right): https://codereview.chromium.org/493613002/diff/20001/chrome/browser/chromeos/policy/consumer_management_service.cc#newcode11 chrome/browser/chromeos/policy/consumer_management_service.cc:11: #include "base/macros.h" On 2014/08/21 11:39:35, bartfab wrote: > Nit: ...
6 years, 4 months ago (2014-08-22 05:14:13 UTC) #6
bartfab (slow)
lgtm https://codereview.chromium.org/493613002/diff/40001/chrome/browser/chromeos/policy/consumer_management_service.cc File chrome/browser/chromeos/policy/consumer_management_service.cc (right): https://codereview.chromium.org/493613002/diff/40001/chrome/browser/chromeos/policy/consumer_management_service.cc#newcode80 chrome/browser/chromeos/policy/consumer_management_service.cc:80: : id_(id), button_click_callback_(button_click_callback) { As discussed in another ...
6 years, 4 months ago (2014-08-25 13:00:46 UTC) #7
davidyu
https://codereview.chromium.org/493613002/diff/40001/chrome/browser/chromeos/policy/consumer_management_service.cc File chrome/browser/chromeos/policy/consumer_management_service.cc (right): https://codereview.chromium.org/493613002/diff/40001/chrome/browser/chromeos/policy/consumer_management_service.cc#newcode80 chrome/browser/chromeos/policy/consumer_management_service.cc:80: : id_(id), button_click_callback_(button_click_callback) { On 2014/08/25 13:00:45, bartfab wrote: ...
6 years, 3 months ago (2014-08-28 09:21:15 UTC) #8
davidyu
The CQ bit was checked by davidyu@chromium.org
6 years, 3 months ago (2014-08-28 13:01:55 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidyu@chromium.org/493613002/60001
6 years, 3 months ago (2014-08-28 13:03:10 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-28 13:57:28 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 14:00:49 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/7324)
6 years, 3 months ago (2014-08-28 14:00:50 UTC) #13
davidyu
davidyu@chromium.org changed reviewers: + antrim@chromium.org, stevenjb@chromium.org
6 years, 3 months ago (2014-08-29 02:04:02 UTC) #14
davidyu
Hi Steven, Would you please review the following files? chrome/browser/resources/options/browser_options.html chrome/browser/resources/options/browser_options.js chrome/browser/ui/webui/options/browser_options_handler.cc chrome/browser/ui/webui/options/browser_options_handler.h chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc chrome/browser/resources/options/chromeos/consumer_management_overlay.html ...
6 years, 3 months ago (2014-08-29 02:04:02 UTC) #15
Denis Kuznetsov (DE-MUC)
chrome/browser/ui/webui/chromeos/* lgtm
6 years, 3 months ago (2014-09-02 14:00:44 UTC) #16
Denis Kuznetsov (DE-MUC)
chrome/browser/ui/webui/chromeos/* lgtm
6 years, 3 months ago (2014-09-02 14:00:44 UTC) #17
stevenjb
+dbeam@ - Please take a quick look at browser_options.js https://codereview.chromium.org/493613002/diff/60001/chrome/browser/chromeos/policy/consumer_management_service.h File chrome/browser/chromeos/policy/consumer_management_service.h (right): https://codereview.chromium.org/493613002/diff/60001/chrome/browser/chromeos/policy/consumer_management_service.h#newcode116 chrome/browser/chromeos/policy/consumer_management_service.h:116: ...
6 years, 3 months ago (2014-09-02 17:06:40 UTC) #19
davidyu
https://codereview.chromium.org/493613002/diff/60001/chrome/browser/chromeos/policy/consumer_management_service.h File chrome/browser/chromeos/policy/consumer_management_service.h (right): https://codereview.chromium.org/493613002/diff/60001/chrome/browser/chromeos/policy/consumer_management_service.h#newcode116 chrome/browser/chromeos/policy/consumer_management_service.h:116: chromeos::DeviceSettingsService* device_settings_service); On 2014/09/02 17:06:39, stevenjb wrote: > nit: ...
6 years, 3 months ago (2014-09-03 06:29:18 UTC) #20
Dan Beam
https://codereview.chromium.org/493613002/diff/120001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/493613002/diff/120001/chrome/browser/resources/options/browser_options.js#newcode1978 chrome/browser/resources/options/browser_options.js:1978: * @param {string} status Consumer management service status string. ...
6 years, 3 months ago (2014-09-04 23:12:37 UTC) #21
davidyu
https://codereview.chromium.org/493613002/diff/120001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/493613002/diff/120001/chrome/browser/resources/options/browser_options.js#newcode1978 chrome/browser/resources/options/browser_options.js:1978: * @param {string} status Consumer management service status string. ...
6 years, 3 months ago (2014-09-05 06:14:11 UTC) #22
Dan Beam
lgtm https://codereview.chromium.org/493613002/diff/140001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/493613002/diff/140001/chrome/browser/resources/options/browser_options.js#newcode1975 chrome/browser/resources/options/browser_options.js:1975: BrowserOptions.setConsumerManagementStatus = function(status) { nit: consider a switch() ...
6 years, 3 months ago (2014-09-05 19:26:49 UTC) #23
davidyu
https://codereview.chromium.org/493613002/diff/140001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/493613002/diff/140001/chrome/browser/resources/options/browser_options.js#newcode1975 chrome/browser/resources/options/browser_options.js:1975: BrowserOptions.setConsumerManagementStatus = function(status) { On 2014/09/05 19:26:49, Dan Beam ...
6 years, 3 months ago (2014-09-09 03:35:00 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidyu@chromium.org/493613002/160001
6 years, 3 months ago (2014-09-09 03:41:11 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/12139)
6 years, 3 months ago (2014-09-09 05:32:31 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidyu@chromium.org/493613002/160001
6 years, 3 months ago (2014-09-09 05:37:37 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/12150)
6 years, 3 months ago (2014-09-09 06:55:45 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidyu@chromium.org/493613002/160001
6 years, 3 months ago (2014-09-09 07:12:12 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/12171)
6 years, 3 months ago (2014-09-09 08:31:25 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidyu@chromium.org/493613002/160001
6 years, 3 months ago (2014-09-10 02:41:09 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/12592)
6 years, 3 months ago (2014-09-10 04:09:49 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/493613002/180001
6 years, 3 months ago (2014-09-11 03:56:29 UTC) #42
commit-bot: I haz the power
Committed patchset #10 (id:180001) as 10e5c642216e13707b0a616af3f4e96cca0ded9f
6 years, 3 months ago (2014-09-11 05:33:45 UTC) #43
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 05:40:11 UTC) #44
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/51ffb80c42001d78b3728e9b13cac6fd57b1a6fc
Cr-Commit-Position: refs/heads/master@{#294323}

Powered by Google App Engine
This is Rietveld 408576698