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

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: merged Created 5 years, 2 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 * @param {Object} data Screen init payload, contains the signin frame 177 * @param {Object} data Screen init payload, contains the signin frame
178 * URL. 178 * URL.
179 */ 179 */
180 onBeforeShow: function(data) { 180 onBeforeShow: function(data) {
181 $('login-header-bar').signinUIState = SIGNIN_UI_STATE.ENROLLMENT; 181 $('login-header-bar').signinUIState = SIGNIN_UI_STATE.ENROLLMENT;
182 $('inner-container').classList.add('new-gaia-flow'); 182 $('inner-container').classList.add('new-gaia-flow');
183 var gaiaParams = {}; 183 var gaiaParams = {};
184 gaiaParams.gaiaUrl = data.gaiaUrl; 184 gaiaParams.gaiaUrl = data.gaiaUrl;
185 gaiaParams.clientId = data.clientId; 185 gaiaParams.clientId = data.clientId;
186 gaiaParams.gaiaPath = 'embedded/setup/chromeos'; 186 gaiaParams.gaiaPath = 'embedded/setup/chromeos';
187 gaiaParams.isNewGaiaFlowChromeOS = true; 187 gaiaParams.isNewGaiaFlow = true;
188 gaiaParams.needPassword = false; 188 gaiaParams.needPassword = false;
189 if (data.management_domain) { 189 if (data.management_domain) {
190 gaiaParams.enterpriseDomain = data.management_domain; 190 gaiaParams.enterpriseDomain = data.management_domain;
191 gaiaParams.emailDomain = data.management_domain; 191 gaiaParams.emailDomain = data.management_domain;
192 } 192 }
193 gaiaParams.flow = data.flow; 193 gaiaParams.flow = data.flow;
194 this.authenticator_.load(cr.login.Authenticator.AuthMode.DEFAULT, 194 this.authenticator_.load(cr.login.Authenticator.AuthMode.DEFAULT,
195 gaiaParams); 195 gaiaParams);
196 196
197 var modes = ['manual', 'forced', 'recovery']; 197 var modes = ['manual', 'forced', 'recovery'];
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 * Uploads the device attributes to server. This goes to C++ side through 294 * Uploads the device attributes to server. This goes to C++ side through
295 * |chrome| and launches the device attribute update negotiation. 295 * |chrome| and launches the device attribute update negotiation.
296 */ 296 */
297 onAttributesSubmitted: function() { 297 onAttributesSubmitted: function() {
298 chrome.send('oauthEnrollAttributes', 298 chrome.send('oauthEnrollAttributes',
299 [$('oauth-enroll-asset-id').value, 299 [$('oauth-enroll-asset-id').value,
300 $('oauth-enroll-location').value]); 300 $('oauth-enroll-location').value]);
301 } 301 }
302 }; 302 };
303 }); 303 });
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/resources/chromeos/login/screen_gaia_signin.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698