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

Unified Diff: chrome/browser/resources/chromeos/login/oobe_screen_enable_debugging.js

Issue 821473002: cros: Update enable-dev UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/login/oobe_screen_enable_debugging.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_screen_enable_debugging.js b/chrome/browser/resources/chromeos/login/oobe_screen_enable_debugging.js
index 5b275c3388e1023d5d0e31b6609418862cdcdf09..9b4c9735354d049bb14f18ce8cdc35c4a301a11f 100644
--- a/chrome/browser/resources/chromeos/login/oobe_screen_enable_debugging.js
+++ b/chrome/browser/resources/chromeos/login/oobe_screen_enable_debugging.js
@@ -32,10 +32,8 @@ login.createScreen('EnableDebuggingScreen', 'debugging', function() {
var password = $('enable-debugging-password');
var password2 = $('enable-debugging-password2');
- $('enable-debugging-password').addEventListener(
- 'input', this.onPasswordChanged_.bind(this));
- $('enable-debugging-password2').addEventListener(
- 'input', this.onPasswordChanged_.bind(this));
+ password.addEventListener('input', this.onPasswordChanged_.bind(this));
+ password2.addEventListener('input', this.onPasswordChanged_.bind(this));
password.placeholder =
loadTimeData.getString('enableDebuggingPasswordLabel');
password2.placeholder =
@@ -162,6 +160,10 @@ login.createScreen('EnableDebuggingScreen', 'debugging', function() {
this.classList.toggle('wait-view', state == this.UI_STATE.WAIT);
this.classList.toggle('done-view', state == this.UI_STATE.DONE);
this.classList.toggle('error-view', state == this.UI_STATE.ERROR);
+ this.defaultControl.focus();
+
+ if (Oobe.getInstance().currentScreen === this)
+ Oobe.getInstance().updateScreenSize(this);
},
updateState: function(state) {

Powered by Google App Engine
This is Rietveld 408576698