Commit f936368a authored by achuith's avatar achuith Committed by Commit bot

Show guest button based on extension parameter guestSignin.

BUG=487474
TEST=manual

Review URL: https://codereview.chromium.org/1132983005

Cr-Commit-Position: refs/heads/master@{#329812}
parent df438c3f
...@@ -415,7 +415,6 @@ login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { ...@@ -415,7 +415,6 @@ login.createScreen('GaiaSigninScreen', 'gaia-signin', function() {
$('progress-dots').hidden = true; $('progress-dots').hidden = true;
params.chromeType = data.chromeType; params.chromeType = data.chromeType;
params.isNewGaiaFlowChromeOS = true; params.isNewGaiaFlowChromeOS = true;
$('login-header-bar').showGuestButton = true;
} }
if (data.gaiaEndpoint) if (data.gaiaEndpoint)
...@@ -472,6 +471,7 @@ login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { ...@@ -472,6 +471,7 @@ login.createScreen('GaiaSigninScreen', 'gaia-signin', function() {
if (this.isNewGaiaFlow) { if (this.isNewGaiaFlow) {
$('login-header-bar').showCreateSupervisedButton = $('login-header-bar').showCreateSupervisedButton =
data.supervisedUsersCanCreate; data.supervisedUsersCanCreate;
$('login-header-bar').showGuestButton = data.guestSignin;
} else { } else {
$('createAccount').hidden = !data.createAccount; $('createAccount').hidden = !data.createAccount;
$('guestSignin').hidden = !data.guestSignin; $('guestSignin').hidden = !data.guestSignin;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment