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

Unified Diff: chrome/browser/resources/settings/about_page/channel_switcher_dialog.js

Issue 2180823004: Migrate <cr-dialog> from PaperDialogBehavior to native <dialog>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge conflicts with Tommy's CL. Created 4 years, 5 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/about_page/channel_switcher_dialog.js
diff --git a/chrome/browser/resources/settings/about_page/channel_switcher_dialog.js b/chrome/browser/resources/settings/about_page/channel_switcher_dialog.js
index 4b911c1904017b4b125da2510bca62bca4e46cb6..14b01f6677b5be6df406e3ea2798c0417a497af0 100644
--- a/chrome/browser/resources/settings/about_page/channel_switcher_dialog.js
+++ b/chrome/browser/resources/settings/about_page/channel_switcher_dialog.js
@@ -55,7 +55,7 @@ Polymer({
/** @override */
attached: function() {
- this.$.dialog.open();
+ this.$.dialog.showModal();
},
/** @private */
@@ -121,7 +121,6 @@ Polymer({
if (selectedChannel == this.currentChannel_) {
this.shouldShowButtons_ = null;
this.warning_ = null;
- this.$.dialog.notifyResize();
return;
}
@@ -145,7 +144,6 @@ Polymer({
'aboutProductTitle');
this.updateButtons_(true, false);
}
- this.$.dialog.notifyResize();
},
/**

Powered by Google App Engine
This is Rietveld 408576698