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

Unified Diff: chrome/browser/resources/settings/search_engines_page/search_engine_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/search_engines_page/search_engine_dialog.js
diff --git a/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js b/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
index eb272e5df80e5f15cd771d12fdc83c2523c91504..7f36e61e898c67708316f69c42b891636ee340be 100644
--- a/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
@@ -66,7 +66,7 @@ Polymer({
this.actionButtonText_ = loadTimeData.getString('add');
}
- this.addEventListener('iron-overlay-canceled', function() {
+ this.addEventListener('cancel', function() {
this.browserProxy_.searchEngineEditCancelled();
}.bind(this));
},
@@ -76,7 +76,7 @@ Polymer({
this.updateActionButtonState_();
this.browserProxy_.searchEngineEditStarted(
this.model ? this.model.modelIndex : this.DEFAULT_MODEL_INDEX);
- this.$.dialog.open();
+ this.$.dialog.showModal();
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698