| Index: chrome/browser/resources/md_history/list_container.js
|
| diff --git a/chrome/browser/resources/md_history/list_container.js b/chrome/browser/resources/md_history/list_container.js
|
| index 24a66c7a87a09b2a156f3c8e685ba77bdc38e171..244e39f87b9396c9629ad8172a0ab11ad19db429 100644
|
| --- a/chrome/browser/resources/md_history/list_container.js
|
| +++ b/chrome/browser/resources/md_history/list_container.js
|
| @@ -22,6 +22,10 @@ Polymer({
|
| queryResult: Object,
|
| },
|
|
|
| + observers: [
|
| + 'searchTermChanged_(queryState.searchTerm)',
|
| + ],
|
| +
|
| listeners: {
|
| 'history-list-scrolled': 'closeMenu_',
|
| 'load-more-history': 'loadMoreHistory_',
|
| @@ -142,6 +146,15 @@ Polymer({
|
| },
|
|
|
| /** @private */
|
| + searchTermChanged_: function() {
|
| + this.queryHistory(false);
|
| + // TODO(tsergeant): Ignore incremental searches in this metric.
|
| + if (this.queryState.searchTerm)
|
| + md_history.BrowserService.getInstance().recordAction('Search');
|
| + },
|
| +
|
| +
|
| + /** @private */
|
| loadMoreHistory_: function() { this.queryHistory(true); },
|
|
|
| /**
|
| @@ -214,7 +227,7 @@ Polymer({
|
| 'EntryMenuShowMoreFromSite');
|
|
|
| var menu = assert(this.$.sharedMenu.getIfExists());
|
| - this.fire('search-domain', {domain: menu.itemData.item.domain});
|
| + this.set('queryState.searchTerm', menu.itemData.item.domain);
|
| menu.closeMenu();
|
| },
|
|
|
|
|