| Index: chrome/browser/resources/md_history/history.js
|
| diff --git a/chrome/browser/resources/md_history/history.js b/chrome/browser/resources/md_history/history.js
|
| index 276e62544bdaaa59d5781a389b045d63ce4d3c7f..242e533f84432dd04fe5e9bf46edcccbf20f307b 100644
|
| --- a/chrome/browser/resources/md_history/history.js
|
| +++ b/chrome/browser/resources/md_history/history.js
|
| @@ -61,9 +61,12 @@ window.addEventListener('resize', function() {
|
|
|
| /**
|
| * When the search is changed refresh the results and load either search results
|
| - * or normal history results.
|
| + * or normal history results. If they are search results, make sure the search
|
| + * bar reflects the search term being used.
|
| */
|
| window.addEventListener('refresh-results', function(e) {
|
| + if (e.detail.search != '')
|
| + $('toolbar').setSearchTerm(e.detail.search);
|
| $('history-card-manager').resetHistoryResults();
|
| chrome.send('queryHistory', [e.detail.search, 0, 0, 0, RESULTS_PER_PAGE]);
|
| });
|
|
|