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

Unified Diff: chrome/browser/resources/settings/on_startup_page/startup_url_entry.js

Issue 2422993005: MD Settings: Migrate startup URL action menu to settings-action-menu. (Closed)
Patch Set: Nit. Created 4 years, 2 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/on_startup_page/startup_url_entry.js
diff --git a/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js b/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js
index e088222948227e5e4b15c509c7cb2c6853fa9ad5..e0fff60b06c1111a5b7567aeb788bf994cc342dc 100644
--- a/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js
+++ b/chrome/browser/resources/settings/on_startup_page/startup_url_entry.js
@@ -36,14 +36,21 @@ Polymer({
/** @private */
onRemoveTap_: function() {
- this.$$('iron-dropdown').close();
+ this.$$('dialog[is=settings-action-menu]').close();
settings.StartupUrlsPageBrowserProxyImpl.getInstance().removeStartupPage(
this.model.modelIndex);
},
/** @private */
onEditTap_: function() {
- this.$$('iron-dropdown').close();
+ this.$$('dialog[is=settings-action-menu]').close();
this.fire(settings.EDIT_STARTUP_URL_EVENT, this.model);
},
+
+ /** @private */
+ onDotsTap_: function() {
+ var actionMenu = /** @type {!SettingsActionMenuElement} */(
+ this.$.menu.get());
+ actionMenu.showAt(assert(this.$.dots));
+ },
});

Powered by Google App Engine
This is Rietveld 408576698