| Index: chrome/browser/resources/md_history/app.crisper.js
|
| diff --git a/chrome/browser/resources/md_history/app.crisper.js b/chrome/browser/resources/md_history/app.crisper.js
|
| index f89cd85d8fadf3e3baf8ec300691ab508b8f59b0..152f64d5ccdf54377af9da692b566dc9e55eaddc 100644
|
| --- a/chrome/browser/resources/md_history/app.crisper.js
|
| +++ b/chrome/browser/resources/md_history/app.crisper.js
|
| @@ -8573,6 +8573,14 @@ Polymer({
|
| window.location.href = window.location.href.split('#')[0] + '?' + window.location.hash.substr(1);
|
| }
|
| },
|
| + onFirstRender: function() {
|
| + requestAnimationFrame(function() {
|
| + chrome.send('metricsHandler:recordTime', [ 'History.ResultsRenderedTime', window.performance.now() ]);
|
| + });
|
| + if (!this.hasDrawer_) {
|
| + this.focusToolbarSearchField();
|
| + }
|
| + },
|
| onMenuTap_: function() {
|
| var drawer = this.$$('#drawer');
|
| if (drawer) drawer.toggle();
|
| @@ -8597,6 +8605,9 @@ Polymer({
|
| var listContainer = this.$['history'];
|
| listContainer.historyResult(info, results);
|
| },
|
| + focusToolbarSearchField: function() {
|
| + this.$.toolbar.showSearchField();
|
| + },
|
| searchDomain_: function(e) {
|
| this.$.toolbar.setSearchTerm(e.detail.domain);
|
| },
|
| @@ -8624,7 +8635,7 @@ Polymer({
|
| this.$.toolbar.setSearchTerm(searchQuery || '');
|
| },
|
| onCommand_: function(e) {
|
| - if (e.command.id == 'find-command' || e.command.id == 'slash-command') this.$.toolbar.showSearchField();
|
| + if (e.command.id == 'find-command' || e.command.id == 'slash-command') this.focusToolbarSearchField();
|
| if (e.command.id == 'delete-command') this.deleteSelected();
|
| },
|
| setForeignSessions: function(sessionList, isTabSyncEnabled) {
|
|
|