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

Unified Diff: chrome/browser/resources/settings/reset_page/reset_page.js

Issue 2793463002: MD Settings: Restore focus after closing various dialogs. (Closed)
Patch Set: more Created 3 years, 9 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/settings/reset_page/reset_page.js
diff --git a/chrome/browser/resources/settings/reset_page/reset_page.js b/chrome/browser/resources/settings/reset_page/reset_page.js
index 20ca0b88db165a6db250abb8241ce840343ac90c..8d1aef1140e4c9b635100f5d40d48df89c33250c 100644
--- a/chrome/browser/resources/settings/reset_page/reset_page.js
+++ b/chrome/browser/resources/settings/reset_page/reset_page.js
@@ -59,6 +59,7 @@ Polymer({
/** @private */
onResetProfileDialogClose_: function() {
settings.navigateToPreviousRoute();
+ this.$$('#resetProfile button[is=paper-icon-button-light').focus();
tommycli 2017/04/03 15:39:50 Are we very confident this won't be null? Also I t
dpapad 2017/04/03 19:23:05 Fixed closing bracket. Regarding whether it can be
tommycli 2017/04/03 19:30:51 Acknowledged. I would probably still recommend giv
dpapad 2017/04/04 00:03:16 Done.
},
// <if expr="chromeos">
@@ -74,6 +75,7 @@ Polymer({
/** @private */
onPowerwashDialogClose_: function() {
this.showPowerwashDialog_ = false;
+ this.$$('#powerwash button[is=paper-icon-button-light').focus();
},
// </if>
});

Powered by Google App Engine
This is Rietveld 408576698