Chromium Code Reviews| Index: chrome/browser/resources/md_history/history_toolbar.js |
| diff --git a/chrome/browser/resources/md_history/history_toolbar.js b/chrome/browser/resources/md_history/history_toolbar.js |
| index a9179ed2fda96f3bf9ffd1ab7d2037afa51eed69..91d443f00d0d42699268d15e5257759ee6a7907f 100644 |
| --- a/chrome/browser/resources/md_history/history_toolbar.js |
| +++ b/chrome/browser/resources/md_history/history_toolbar.js |
| @@ -36,6 +36,19 @@ Polymer({ |
| }, |
| /** |
| + * When using the drop-down "more from site" set the search bar to reflect the |
| + * term that was searched. |
| + */ |
| + setSearchTerm: function(search) { |
| + this.searchTerm = search; |
| + var searchBar = this.$$('#search-input'); |
| + |
| + searchBar.showAndFocus(); |
| + Polymer.dom.flush(); |
|
calamity
2016/02/03 05:09:13
Do we need this flush?
hsampson
2016/02/08 00:39:37
Yes otherwise we can't access the search input sec
|
| + searchBar.$$('#search-input').value = search; |
| + }, |
| + |
| + /** |
| * If the search term has changed reload for the new search. |
| */ |
| onSearchTermSearch: function(searchTerm) { |