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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js

Issue 1344443002: Implement new password separated sign in flow for chrome desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() { 5 login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
6 /** @const */ var STEP_SIGNIN = 'signin'; 6 /** @const */ var STEP_SIGNIN = 'signin';
7 /** @const */ var STEP_WORKING = 'working'; 7 /** @const */ var STEP_WORKING = 'working';
8 /** @const */ var STEP_ATTRIBUTE_PROMPT = 'attribute-prompt'; 8 /** @const */ var STEP_ATTRIBUTE_PROMPT = 'attribute-prompt';
9 /** @const */ var STEP_ERROR = 'error'; 9 /** @const */ var STEP_ERROR = 'error';
10 /** @const */ var STEP_SUCCESS = 'success'; 10 /** @const */ var STEP_SUCCESS = 'success';
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 * @param {Object} data Screen init payload, contains the signin frame 176 * @param {Object} data Screen init payload, contains the signin frame
177 * URL. 177 * URL.
178 */ 178 */
179 onBeforeShow: function(data) { 179 onBeforeShow: function(data) {
180 $('login-header-bar').signinUIState = SIGNIN_UI_STATE.ENROLLMENT; 180 $('login-header-bar').signinUIState = SIGNIN_UI_STATE.ENROLLMENT;
181 $('inner-container').classList.add('new-gaia-flow'); 181 $('inner-container').classList.add('new-gaia-flow');
182 var gaiaParams = {}; 182 var gaiaParams = {};
183 gaiaParams.gaiaUrl = data.gaiaUrl; 183 gaiaParams.gaiaUrl = data.gaiaUrl;
184 gaiaParams.clientId = data.clientId; 184 gaiaParams.clientId = data.clientId;
185 gaiaParams.gaiaPath = 'embedded/setup/chromeos'; 185 gaiaParams.gaiaPath = 'embedded/setup/chromeos';
186 gaiaParams.isNewGaiaFlowChromeOS = true; 186 gaiaParams.isNewGaiaFlow = true;
187 gaiaParams.needPassword = false; 187 gaiaParams.needPassword = false;
188 if (data.management_domain) { 188 if (data.management_domain) {
189 gaiaParams.enterpriseDomain = data.management_domain; 189 gaiaParams.enterpriseDomain = data.management_domain;
190 gaiaParams.emailDomain = data.management_domain; 190 gaiaParams.emailDomain = data.management_domain;
191 } 191 }
192 gaiaParams.flow = data.flow; 192 gaiaParams.flow = data.flow;
193 this.authenticator_.load(cr.login.Authenticator.AuthMode.DEFAULT, 193 this.authenticator_.load(cr.login.Authenticator.AuthMode.DEFAULT,
194 gaiaParams); 194 gaiaParams);
195 195
196 var modes = ['manual', 'forced', 'recovery']; 196 var modes = ['manual', 'forced', 'recovery'];
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 * Uploads the device attributes to server. This goes to C++ side through 293 * Uploads the device attributes to server. This goes to C++ side through
294 * |chrome| and launches the device attribute update negotiation. 294 * |chrome| and launches the device attribute update negotiation.
295 */ 295 */
296 onAttributesSubmitted: function() { 296 onAttributesSubmitted: function() {
297 chrome.send('oauthEnrollAttributes', 297 chrome.send('oauthEnrollAttributes',
298 [$('oauth-enroll-asset-id').value, 298 [$('oauth-enroll-asset-id').value,
299 $('oauth-enroll-location').value]); 299 $('oauth-enroll-location').value]);
300 } 300 }
301 }; 301 };
302 }); 302 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698