Commit b7b15172 authored by guohui@chromium.org's avatar guohui@chromium.org

Show spinner for constrained signin flow

and change the spinner background color to the same as EmbeddedSignin, otherwise user may see flicker.

BUG=385876

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278283 0039d316-1c4b-4281-b951-d872f2087c98
parent 2297bb2e
...@@ -16,6 +16,7 @@ body, ...@@ -16,6 +16,7 @@ body,
#signin-frame, #signin-frame,
#spinner-container { #spinner-container {
background-color: #f5f5f5;
bottom: 0; bottom: 0;
left: 0; left: 0;
position: absolute; position: absolute;
......
...@@ -56,7 +56,8 @@ cr.define('inline.login', function() { ...@@ -56,7 +56,8 @@ cr.define('inline.login', function() {
function loadAuthExtension(data) { function loadAuthExtension(data) {
authExtHost.load(data.authMode, data, onAuthCompleted); authExtHost.load(data.authMode, data, onAuthCompleted);
$('contents').classList.toggle('loading', $('contents').classList.toggle('loading',
data.authMode != cr.login.GaiaAuthHost.AuthMode.DESKTOP); data.authMode != cr.login.GaiaAuthHost.AuthMode.DESKTOP ||
data.constrained == '1');
} }
/** /**
......
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