Index: chrome/browser/resources/chromeos/login/oobe_dialog.js |
diff --git a/chrome/browser/resources/chromeos/login/oobe_dialog.js b/chrome/browser/resources/chromeos/login/oobe_dialog.js |
index 9496e39dc8a9002dd7b349a1ebe2c4f0377ec9a2..e4592fa24fc08a2e2a621ea8cc3e06f6b322ea39 100644 |
--- a/chrome/browser/resources/chromeos/login/oobe_dialog.js |
+++ b/chrome/browser/resources/chromeos/login/oobe_dialog.js |
@@ -23,4 +23,17 @@ Polymer({ |
reflectToAttribute: true, |
}, |
}, |
+ |
+ focus: function() {}, |
+ |
+ /** |
+ * This is called from oobe_welcome when this dialog is shown. |
+ */ |
+ show: function() { |
+ var focused = this.getElementsByClassName('focus-on-show'); |
stevenjb
2017/02/14 01:21:32
nit: focusedElements
Alexander Alekseev
2017/02/14 11:59:27
Done.
|
+ if (focused) |
+ focused[0].focus(); |
+ |
+ this.fire('show-dialog'); |
+ }, |
}); |