| Index: chrome/browser/resources/md_history/app.js
|
| diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
|
| index 33e2c62d79a61eec7d0d97c1c32fad400fe67ff8..40b41e212c7d76e5d4366b2c01529d1df0f2a28f 100644
|
| --- a/chrome/browser/resources/md_history/app.js
|
| +++ b/chrome/browser/resources/md_history/app.js
|
| @@ -114,8 +114,10 @@ Polymer({
|
|
|
| // Focus the search field on load. Done here to ensure the history page
|
| // is rendered before we try to take focus.
|
| - if (!this.hasDrawer_) {
|
| - this.focusToolbarSearchField();
|
| + var searchField =
|
| + /** @type {HistoryToolbarElement} */ (this.$.toolbar).searchField;
|
| + if (!searchField.narrow) {
|
| + searchField.getSearchInput().focus();
|
| }
|
|
|
| // Lazily load the remainder of the UI.
|
| @@ -176,7 +178,7 @@ Polymer({
|
| },
|
|
|
| /**
|
| - * Focuses the search bar in the toolbar.
|
| + * Shows and focuses the search bar in the toolbar.
|
| */
|
| focusToolbarSearchField: function() { this.$.toolbar.showSearchField(); },
|
|
|
|
|