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

Issue 10664017: Introduce a new error code from the DM server - 402 - missing licenses. (Closed)

Created:
8 years, 6 months ago by pastarmovj
Modified:
8 years, 5 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, Glenn Wilson, cyrusm_chromium.org, Bin
Visibility:
Public.

Description

Introduce a new error code from the DM server - 402 - missing licenses. Drive by cleanup: Consolidated the error reporting for the EnterpriseEnrollmentScreen. BUG=chromium-os:30457 TEST=unit_tests. For manual testing set up the DMServer to send 402 error to registration request and observe the special error message on the enrollment screen. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=144450

Patch Set 1 : . #

Total comments: 23

Patch Set 2 : Addressed comments. #

Patch Set 3 : New error message wording. #

Total comments: 2

Patch Set 4 : s/serials/licenses// #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -106 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc View 1 6 chunks +30 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_actor.h View 1 2 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/enrollment/mock_enterprise_enrollment_screen.h View 1 chunk +1 line, -9 lines 0 comments Download
M chrome/browser/policy/cloud_policy_constants.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_controller.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_controller_unittest.cc View 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_refresh_scheduler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_refresh_scheduler_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/device_management_service.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_management_service_unittest.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher.cc View 1 5 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/policy/enterprise_metrics.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_notifier.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.h View 1 chunk +1 line, -9 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc View 1 2 3 2 chunks +59 lines, -65 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
pastarmovj
@Mattias: Please review this as a whole. @Nikita: Please review as an owner of chrome/browser/ui/webui/chromeos/login ...
8 years, 6 months ago (2012-06-25 16:41:21 UTC) #1
Mattias Nissler (ping if slow)
http://chromiumcodereview.appspot.com/10664017/diff/2002/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc (right): http://chromiumcodereview.appspot.com/10664017/diff/2002/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc#newcode131 chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc:131: EnterpriseEnrollmentScreenActor::MISSING_LICESES_ERROR); Eclipse auto-complete strikes again. http://chromiumcodereview.appspot.com/10664017/diff/2002/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc#newcode252 chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc:252: if (is_showing_) ...
8 years, 6 months ago (2012-06-26 09:19:34 UTC) #2
Mattias Nissler (ping if slow)
Cyrus, Glenn, Bin: You might have an opinion on the wording of the error message. ...
8 years, 6 months ago (2012-06-26 09:28:23 UTC) #3
Nikita (slow)
Hint: please test this also with this flagfile /root/.enable_new_oobe to use new layout for OOBE/sign ...
8 years, 6 months ago (2012-06-26 10:32:56 UTC) #4
Nikita (slow)
chromeos/login webui/chromeos/login lgtm http://codereview.chromium.org/10664017/diff/2002/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_actor.h File chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_actor.h (right): http://codereview.chromium.org/10664017/diff/2002/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_actor.h#newcode31 chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_actor.h:31: MISSING_LICESES_ERROR, *LICENSES
8 years, 6 months ago (2012-06-26 10:37:34 UTC) #5
Bin
http://chromiumcodereview.appspot.com/10664017/diff/2002/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://chromiumcodereview.appspot.com/10664017/diff/2002/chrome/app/generated_resources.grd#newcode16105 chrome/app/generated_resources.grd:16105: + The domain this user belongs to has ran ...
8 years, 6 months ago (2012-06-26 16:47:09 UTC) #6
pastarmovj
Addressed all the comments and changed the user visible error message according to Bin's comment. ...
8 years, 6 months ago (2012-06-26 16:59:29 UTC) #7
pastarmovj
On 2012/06/26 10:32:56, Nikita Kostylev wrote: > Hint: please test this also with this flagfile ...
8 years, 6 months ago (2012-06-26 17:11:23 UTC) #8
pastarmovj
On 2012/06/26 10:32:56, Nikita Kostylev wrote: > Hint: please test this also with this flagfile ...
8 years, 6 months ago (2012-06-26 17:15:28 UTC) #9
Bin
Error message looks good to me.
8 years, 6 months ago (2012-06-26 21:11:49 UTC) #10
Mattias Nissler (ping if slow)
LGTM after you fix my comment. http://codereview.chromium.org/10664017/diff/12004/chrome/browser/policy/enterprise_metrics.h File chrome/browser/policy/enterprise_metrics.h (right): http://codereview.chromium.org/10664017/diff/12004/chrome/browser/policy/enterprise_metrics.h#newcode155 chrome/browser/policy/enterprise_metrics.h:155: kMetricMissingSerialsError, Name still ...
8 years, 5 months ago (2012-06-27 12:12:10 UTC) #11
pastarmovj
http://codereview.chromium.org/10664017/diff/12004/chrome/browser/policy/enterprise_metrics.h File chrome/browser/policy/enterprise_metrics.h (right): http://codereview.chromium.org/10664017/diff/12004/chrome/browser/policy/enterprise_metrics.h#newcode155 chrome/browser/policy/enterprise_metrics.h:155: kMetricMissingSerialsError, On 2012/06/27 12:12:10, Mattias Nissler wrote: > Name ...
8 years, 5 months ago (2012-06-27 12:30:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pastarmovj@chromium.org/10664017/16002
8 years, 5 months ago (2012-06-27 12:31:07 UTC) #13
commit-bot: I haz the power
8 years, 5 months ago (2012-06-27 13:48:55 UTC) #14
Change committed as 144450

Powered by Google App Engine
This is Rietveld 408576698