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 781623003: Fix Chrome OS enrollment with SAML accounts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ERROR = 'error'; 8 /** @const */ var STEP_ERROR = 'error';
9 /** @const */ var STEP_EXPLAIN = 'explain'; 9 /** @const */ var STEP_EXPLAIN = 'explain';
10 /** @const */ var STEP_SUCCESS = 'success'; 10 /** @const */ var STEP_SUCCESS = 'success';
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 }, 144 },
145 145
146 /** 146 /**
147 * Event handler that is invoked just before the frame is shown. 147 * Event handler that is invoked just before the frame is shown.
148 * @param {Object} data Screen init payload, contains the signin frame 148 * @param {Object} data Screen init payload, contains the signin frame
149 * URL. 149 * URL.
150 */ 150 */
151 onBeforeShow: function(data) { 151 onBeforeShow: function(data) {
152 var url = data.signin_url; 152 var url = data.signin_url;
153 url += '?gaiaUrl=' + encodeURIComponent(data.gaiaUrl); 153 url += '?gaiaUrl=' + encodeURIComponent(data.gaiaUrl);
154 url += '&needPassword=0';
Denis Kuznetsov (DE-MUC) 2014/12/05 14:33:19 I know it is all our playground, but do we happen
bartfab (slow) 2014/12/15 17:10:21 I am not aware of any. We have GURL in C++ but not
154 this.signInUrl_ = url; 155 this.signInUrl_ = url;
155 var modes = ['manual', 'forced', 'auto']; 156 var modes = ['manual', 'forced', 'auto'];
156 for (var i = 0; i < modes.length; ++i) { 157 for (var i = 0; i < modes.length; ++i) {
157 this.classList.toggle('mode-' + modes[i], 158 this.classList.toggle('mode-' + modes[i],
158 data.enrollment_mode == modes[i]); 159 data.enrollment_mode == modes[i]);
159 } 160 }
160 this.managementDomain_ = data.management_domain; 161 this.managementDomain_ = data.management_domain;
161 $('oauth-enroll-signin-frame').contentWindow.location.href = 162 $('oauth-enroll-signin-frame').contentWindow.location.href =
162 this.signInUrl_; 163 this.signInUrl_;
163 this.updateLocalizedContent(); 164 this.updateLocalizedContent();
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 306
306 if (msg.method == 'missingGaiaInfo') { 307 if (msg.method == 'missingGaiaInfo') {
307 this.showError( 308 this.showError(
308 loadTimeData.getString('fatalEnrollmentError'), 309 loadTimeData.getString('fatalEnrollmentError'),
309 false); 310 false);
310 } 311 }
311 } 312 }
312 }; 313 };
313 }); 314 });
314 315
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698