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

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

Issue 2782393004: MD Settings: Restore focus after closing dialogs, for startup page. (Closed)
Patch Set: Fix test. 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/on_startup_page/startup_urls_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 da916d80df8ed600fd49c78011fe021271fff2e8..2c582027c2653f5779a7d771267cac2e593cb8ae 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
@@ -55,7 +55,10 @@ Polymer({
onEditTap_: function(e) {
e.preventDefault();
this.$$('dialog[is=cr-action-menu]').close();
- this.fire(settings.EDIT_STARTUP_URL_EVENT, this.model);
+ this.fire(settings.EDIT_STARTUP_URL_EVENT, {
+ model: this.model,
+ anchor: this.$$('#dots'),
+ });
},
/** @private */
« no previous file with comments | « no previous file | chrome/browser/resources/settings/on_startup_page/startup_urls_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698