| 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 9ccc9ceccbf6ecf897375e57b03058517e9ceae6..4864f53a324ba2e72c44d2f7a96466da82f81573 100644
|
| --- a/chrome/browser/resources/md_history/app.js
|
| +++ b/chrome/browser/resources/md_history/app.js
|
| @@ -54,7 +54,7 @@ Polymer({
|
| queryParams_: Object,
|
|
|
| // True if the window is narrow enough for the page to have a drawer.
|
| - hasDrawer_: Boolean,
|
| + hasDrawer: Boolean,
|
| },
|
|
|
| observers: [
|
| @@ -143,6 +143,13 @@ Polymer({
|
| },
|
|
|
| /**
|
| + * Focuses the search bar in the toolbar.
|
| + */
|
| + focusToolbarSearchField: function() {
|
| + this.$.toolbar.showSearchField();
|
| + },
|
| +
|
| + /**
|
| * Fired when the user presses 'More from this site'.
|
| * @param {{detail: {domain: string}}} e
|
| */
|
| @@ -190,7 +197,7 @@ Polymer({
|
| */
|
| onCommand_: function(e) {
|
| if (e.command.id == 'find-command' || e.command.id == 'slash-command')
|
| - this.$.toolbar.showSearchField();
|
| + this.focusToolbarSearchField();
|
| if (e.command.id == 'delete-command')
|
| this.deleteSelected();
|
| },
|
|
|