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

Unified Diff: chrome/browser/resources/options2/certificate_restore_overlay.js

Issue 9379033: Settings: Focus the password field of the cert restore dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style nit. Created 8 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options2/certificate_restore_overlay.js
diff --git a/chrome/browser/resources/options2/certificate_restore_overlay.js b/chrome/browser/resources/options2/certificate_restore_overlay.js
index ccc1697e971444e0310e4d31461fd2c0c2af8ca9..47aff5c14cc14b0f252d0db7fe08421b63cbe5e3 100644
--- a/chrome/browser/resources/options2/certificate_restore_overlay.js
+++ b/chrome/browser/resources/options2/certificate_restore_overlay.js
@@ -11,8 +11,7 @@ cr.define('options', function() {
* @class
*/
function CertificateRestoreOverlay() {
- OptionsPage.call(this, 'certificateRestore',
- '',
+ OptionsPage.call(this, 'certificateRestore', '',
'certificateRestoreOverlay');
}
@@ -38,6 +37,11 @@ cr.define('options', function() {
self.clearInputFields_();
},
+ /** @inheritDoc */
+ didShowPage: function() {
+ $('certificateRestorePassword').focus();
+ },
+
/**
* Clears any uncommitted input, and dismisses the overlay.
* @private
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698