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

Issue 426153003: Consumer management enrollment signin screen change: (Closed)

Created:
6 years, 4 months ago by davidyu
Modified:
6 years, 4 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, bartfab (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Consumer management enrollment signin screen change: - Show Gaia signin page instead of account picker. - Pre-fill owner email in Gaia signin page. - Show only the enrollment message in Gaia screen right panel. - Show only a cancel button (in addition to Shutdown) at the bottom. BUG=chromium:353050 TEST=manually test the signin page. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287143

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Added owner email check. #

Total comments: 26
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -11 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/header_bar.html View 1 chunk +6 lines, -0 lines 2 comments Download
M chrome/browser/resources/chromeos/login/header_bar.js View 1 4 chunks +17 lines, -0 lines 2 comments Download
M chrome/browser/resources/chromeos/login/screen_gaia_signin.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_gaia_signin.js View 1 4 chunks +20 lines, -2 lines 4 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h View 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc View 1 2 9 chunks +26 lines, -5 lines 8 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 9 chunks +32 lines, -3 lines 10 comments Download
M ui/login/display_manager.js View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
davidyu
Hi Nikita, I've made changes to the sign-in screen. I did my best to understand ...
6 years, 4 months ago (2014-07-30 09:22:30 UTC) #1
Nikita (slow)
Were you planning to extend enrollment_screen_handler instead? It also supports showing its own GAIA in ...
6 years, 4 months ago (2014-07-31 10:03:43 UTC) #2
davidyu
On 2014/07/31 10:03:43, Nikita Kostylev wrote: > Were you planning to extend enrollment_screen_handler instead? It ...
6 years, 4 months ago (2014-07-31 11:28:03 UTC) #3
davidyu
Regarding enrollment screen, it seems to be inadequate to use it as it is a ...
6 years, 4 months ago (2014-08-01 07:07:23 UTC) #4
Nikita (slow)
lgtm
6 years, 4 months ago (2014-08-01 10:51:30 UTC) #5
davidyu
The CQ bit was checked by davidyu@chromium.org
6 years, 4 months ago (2014-08-01 16:35:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidyu@chromium.org/426153003/40001
6 years, 4 months ago (2014-08-01 16:37:25 UTC) #7
commit-bot: I haz the power
Change committed as 287143
6 years, 4 months ago (2014-08-02 01:32:46 UTC) #8
bartfab (slow)
I am a bit late to the party (I took some time off and was ...
6 years, 4 months ago (2014-08-04 17:40:52 UTC) #9
davidyu
6 years, 4 months ago (2014-08-05 07:24:06 UTC) #10
Message was sent while issue was closed.
Still, thanks for the comments. All of them are addressed in
https://codereview.chromium.org/438493002/

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/resources...
File chrome/browser/resources/chromeos/login/header_bar.html (right):

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/resources...
chrome/browser/resources/chromeos/login/header_bar.html:33: </button>
On 2014/08/04 17:40:51, bartfab wrote:
> You have two </button>, one here and one at the end of the previous line.

Oops. Fixed.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/resources...
File chrome/browser/resources/chromeos/login/header_bar.js (right):

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/resources...
chrome/browser/resources/chromeos/login/header_bar.js:49:
.addEventListener('click',
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: This indentation is incorrect. Either indent all arguments by four spaces
> or align them all with the opening brace. Do not mix the two styles.

Done.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/resources...
File chrome/browser/resources/chromeos/login/screen_gaia_signin.js (right):

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/resources...
chrome/browser/resources/chromeos/login/screen_gaia_signin.js:223:
SIGNIN_UI_STATE.CONSUMER_MANAGEMENT_ENROLLMENT :
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: Indent this line and the next by four more spaces. They are parts of a
> ternary operator that starts a line above.

Done.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/resources...
chrome/browser/resources/chromeos/login/screen_gaia_signin.js:327:
this.isEnrollingConsumerManagement_ = data.isEnrollingConsumerManagement;
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: You use |data.isEnrollingConsumerManagement| in two places. Why not store
> it in a temporary variable to make it easier to check the code for
consistency?

Done.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
File chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc (right):

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:39: void
UpdateAuthParams(base::DictionaryValue* params, bool has_users,
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: Per the style guide, either put all arguments on one line or each on a
> separate line. Do not mix the two styles.

Done.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:146:
context.is_enrolling_consumer_management);
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: You use |context.is_enrolling_consumer_managementt| in two places. Why
not
> store it in a temporary |const bool| variable to make it easier to check the
> code for consistency?

Done.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:292: std::string
owner_email = UserManager::Get()->GetOwnerEmail();
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: const.

Done.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:294: // Show Gaia
signin page again since we only allow the owner to sign in.
On 2014/08/04 17:40:52, bartfab wrote:
> Nit 1: s/signin/sign-in/
> Nit 2: s/again/again, /

Done.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
File chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc (right):

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:302:
CommandLine* command_line = CommandLine::ForCurrentProcess();
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: const.

Done.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:303:
PrefService* prefs = g_browser_process->local_state();
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: const.

This line is removed.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:434: // We don't
check if the value of the owner email is trusted because it is
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: s/email/e-mail/

Done.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:435: // only
used to pre-fill the email field in Gaia sign-in page and a cached
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: s/email/e-mail/

Done.

https://codereview.chromium.org/426153003/diff/40001/chrome/browser/ui/webui/...
chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:1348:
PrefService* prefs = g_browser_process->local_state();
On 2014/08/04 17:40:52, bartfab wrote:
> Nit: const.

This line is removed.

Powered by Google App Engine
This is Rietveld 408576698