Index: chrome/browser/resources/settings/about_page/detailed_build_info.js |
diff --git a/chrome/browser/resources/settings/about_page/detailed_build_info.js b/chrome/browser/resources/settings/about_page/detailed_build_info.js |
index 78d22e1e751f3fbafef175a1018f4d5547357793..33a90b780c461c96e70c95628ead4ad30ba2909e 100644 |
--- a/chrome/browser/resources/settings/about_page/detailed_build_info.js |
+++ b/chrome/browser/resources/settings/about_page/detailed_build_info.js |
@@ -89,16 +89,12 @@ Polymer({ |
onChangeChannelTap_: function(e) { |
e.preventDefault(); |
this.showChannelSwitcherDialog_ = true; |
- // Async to wait for dialog to appear in the DOM. |
- this.async(function() { |
- var dialog = this.$$('settings-channel-switcher-dialog'); |
- // Register listener to detect when the dialog is closed. Flip the boolean |
- // once closed to force a restamp next time it is shown such that the |
- // previous dialog's contents are cleared. |
- dialog.addEventListener('close', function() { |
- this.showChannelSwitcherDialog_ = false; |
- this.updateChannelInfo_(); |
- }.bind(this)); |
- }.bind(this)); |
+ }, |
+ |
+ /** @private */ |
+ onChannelSwitcherDialogClosed_: function() { |
+ this.showChannelSwitcherDialog_ = false; |
+ this.$$('paper-button').focus(); |
+ this.updateChannelInfo_(); |
stevenjb
2017/04/06 23:08:06
Ahh, much nicer :) Cheers!
|
}, |
}); |