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

Issue 7562008: Add new version of enrollment screen supporting OAuth. (Closed)

Created:
9 years, 4 months ago by Mattias Nissler (ping if slow)
Modified:
9 years, 4 months ago
CC:
chromium-reviews, rharrison, arv (Not doing code reviews), nkostylev+cc_chromium.org, davemoore+watch_chromium.org, zel, Sumit, altimofeev
Visibility:
Public.

Description

Add new version of enrollment screen supporting OAuth. If switched on via a command line flag, the new version of the enrollment screen is enabled. It uses the authentication extension, which will fetch an OAuth token that is then used to register for device policy. BUG=chromium-os:18203 TEST=Enable flags and test enrollment. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96181

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address comments. #

Total comments: 4

Patch Set 3 : Address comments. #

Total comments: 14

Patch Set 4 : New icons, address comments. #

Total comments: 2

Patch Set 5 : rebase, fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+833 lines, -30 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/app/theme/enroll_failure.png View 1 2 3 Binary file 0 comments Download
A chrome/app/theme/enroll_success.png View 1 2 3 Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_screen.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_screen.cc View 1 4 chunks +34 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_screen_actor.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.h View 1 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 1 chunk +12 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe.css View 1 2 3 4 2 chunks +98 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe.html View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js View 1 2 3 1 chunk +174 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_gaia_signin.js View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
A chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.h View 1 2 3 4 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc View 1 2 3 4 1 chunk +307 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/oobe_ui.cc View 1 2 3 4 4 chunks +16 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Mattias Nissler (ping if slow)
Hi guys, here is a first stab at converting the enrollment screen to OAuth and ...
9 years, 4 months ago (2011-08-03 14:43:10 UTC) #1
pastarmovj
For the policy part it is LGTM for me. I spotted only two tiny nits ...
9 years, 4 months ago (2011-08-03 15:01:55 UTC) #2
Nikita (slow)
I'm OOO for 3 weeks, adding Anton instead.
9 years, 4 months ago (2011-08-03 16:00:12 UTC) #3
whywhat
LGTM with a few nits and suggestions BTW, could you tell me how to trigger ...
9 years, 4 months ago (2011-08-03 17:48:03 UTC) #4
Mattias Nissler (ping if slow)
Answers to Anton's questions, will fix the nits tomorrow. On 2011/08/03 17:48:03, whywhat wrote: > ...
9 years, 4 months ago (2011-08-03 21:13:24 UTC) #5
Mattias Nissler (ping if slow)
Addressed your comments, new version is up for review. http://codereview.chromium.org/7562008/diff/1/chrome/browser/chromeos/login/enterprise_enrollment_screen.h File chrome/browser/chromeos/login/enterprise_enrollment_screen.h (right): http://codereview.chromium.org/7562008/diff/1/chrome/browser/chromeos/login/enterprise_enrollment_screen.h#newcode80 chrome/browser/chromeos/login/enterprise_enrollment_screen.h:80: ...
9 years, 4 months ago (2011-08-04 09:58:59 UTC) #6
whywhat
Thanks for the fixes! http://codereview.chromium.org/7562008/diff/6001/chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc (right): http://codereview.chromium.org/7562008/diff/6001/chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc#newcode266 chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc:266: new GaiaOAuthFetcher(this, This ctor also ...
9 years, 4 months ago (2011-08-04 10:47:51 UTC) #7
Mattias Nissler (ping if slow)
Addressed comments (but note that Rick has another CL up that will change GaiaOAuthFetcher again...). ...
9 years, 4 months ago (2011-08-04 14:38:44 UTC) #8
whywhat
On 2011/08/04 14:38:44, Mattias Nissler wrote: > Addressed comments (but note that Rick has another ...
9 years, 4 months ago (2011-08-05 04:52:41 UTC) #9
whywhat
http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html File chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html (right): http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html#newcode29 chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html:29: onclick="chrome.send('oauthEnrollRetry', []);" nit: indent got off by one space ...
9 years, 4 months ago (2011-08-05 07:24:58 UTC) #10
Mattias Nissler (ping if slow)
http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html File chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html (right): http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html#newcode29 chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html:29: onclick="chrome.send('oauthEnrollRetry', []);" On 2011/08/05 07:24:58, whywhat wrote: > nit: ...
9 years, 4 months ago (2011-08-05 07:33:15 UTC) #11
whywhat
http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html File chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html (right): http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html#newcode29 chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html:29: onclick="chrome.send('oauthEnrollRetry', []);" Ah, ok. I thought you wanted to ...
9 years, 4 months ago (2011-08-05 07:38:52 UTC) #12
Mattias Nissler (ping if slow)
http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html File chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html (right): http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html#newcode29 chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html:29: onclick="chrome.send('oauthEnrollRetry', []);" On 2011/08/05 07:38:53, whywhat wrote: > Ah, ...
9 years, 4 months ago (2011-08-05 07:40:58 UTC) #13
James Hawkins
http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe.css File chrome/browser/resources/chromeos/login/oobe.css (right): http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe.css#newcode455 chrome/browser/resources/chromeos/login/oobe.css:455: top: 0.5em; Why are you using em here? http://codereview.chromium.org/7562008/diff/6002/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html ...
9 years, 4 months ago (2011-08-05 17:01:01 UTC) #14
Mattias Nissler (ping if slow)
Here's the next iteration on this. I addressed James' comments. James, please take another look. ...
9 years, 4 months ago (2011-08-08 16:38:47 UTC) #15
James Hawkins
LGTM with nit. http://codereview.chromium.org/7562008/diff/19001/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html File chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html (right): http://codereview.chromium.org/7562008/diff/19001/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html#newcode4 chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html:4: <iframe id="oauth-enroll-signin-frame" Please fill up the ...
9 years, 4 months ago (2011-08-08 19:00:10 UTC) #16
Mattias Nissler (ping if slow)
9 years, 4 months ago (2011-08-10 12:37:24 UTC) #17
I plan to land this later today.

http://codereview.chromium.org/7562008/diff/19001/chrome/browser/resources/ch...
File chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html
(right):

http://codereview.chromium.org/7562008/diff/19001/chrome/browser/resources/ch...
chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html:4:
<iframe id="oauth-enroll-signin-frame"
On 2011/08/08 19:00:10, James Hawkins wrote:
> Please fill up the 80 cols and wrap only when necessary.

Done.

Powered by Google App Engine
This is Rietveld 408576698