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

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

Issue 2622273002: Handle login and password error for the domain join (Closed)
Patch Set: Strings+rebase Created 3 years, 11 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 /* Code which is embedded inside of the webview. See below for details. 6 /* Code which is embedded inside of the webview. See below for details.
7 /** @const */ var INJECTED_WEBVIEW_SCRIPT = String.raw` 7 /** @const */ var INJECTED_WEBVIEW_SCRIPT = String.raw`
8 (function() { 8 (function() {
9 // <include src="../keyboard/keyboard_utils.js"> 9 // <include src="../keyboard/keyboard_utils.js">
10 keyboard.initializeKeyboardFlow(true); 10 keyboard.initializeKeyboardFlow(true);
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 retry ? loadTimeData.getString('oauthEnrollRetry') : ''; 349 retry ? loadTimeData.getString('oauthEnrollRetry') : '';
350 this.showStep(STEP_ERROR); 350 this.showStep(STEP_ERROR);
351 }, 351 },
352 352
353 doReload: function() { 353 doReload: function() {
354 this.lastBackMessageValue_ = false; 354 this.lastBackMessageValue_ = false;
355 this.authenticator_.reload(); 355 this.authenticator_.reload();
356 this.updateControlsState(); 356 this.updateControlsState();
357 }, 357 },
358 358
359 invalidateAd: function(machineName, user) { 359 invalidateAd: function(machineName, user, errorState) {
360 this.offlineAdUi_.disabled = false; 360 this.offlineAdUi_.disabled = false;
361 this.offlineAdUi_.setUser(user, machineName); 361 this.offlineAdUi_.setUser(user, machineName);
362 this.offlineAdUi_.setInvalid(errorState);
362 }, 363 },
363 364
364 /** 365 /**
365 * Retries the enrollment process after an error occurred in a previous 366 * Retries the enrollment process after an error occurred in a previous
366 * attempt. This goes to the C++ side through |chrome| first to clean up the 367 * attempt. This goes to the C++ side through |chrome| first to clean up the
367 * profile, so that the next attempt is performed with a clean state. 368 * profile, so that the next attempt is performed with a clean state.
368 */ 369 */
369 doRetry_: function() { 370 doRetry_: function() {
370 chrome.send('oauthEnrollRetry'); 371 chrome.send('oauthEnrollRetry');
371 }, 372 },
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 this.navigation_.refreshVisible = this.isAtTheBeginning() && 408 this.navigation_.refreshVisible = this.isAtTheBeginning() &&
408 !this.isManualEnrollment_; 409 !this.isManualEnrollment_;
409 this.navigation_.closeVisible = (this.currentStep_ == STEP_SIGNIN || 410 this.navigation_.closeVisible = (this.currentStep_ == STEP_SIGNIN ||
410 this.currentStep_ == STEP_ERROR || 411 this.currentStep_ == STEP_ERROR ||
411 this.currentStep_ == STEP_AD_JOIN) && 412 this.currentStep_ == STEP_AD_JOIN) &&
412 !this.navigation_.refreshVisible; 413 !this.navigation_.refreshVisible;
413 $('login-header-bar').updateUI_(); 414 $('login-header-bar').updateUI_();
414 } 415 }
415 }; 416 };
416 }); 417 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698