| 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 c9a41b995f83e9280ce30cd22621e6bd7d05473c..8b02ad7e7faddc2becec25ad34cfb8c7ecc1e377 100644
|
| --- a/chrome/browser/resources/md_history/app.js
|
| +++ b/chrome/browser/resources/md_history/app.js
|
| @@ -142,6 +142,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
|
| */
|
| @@ -189,7 +196,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();
|
| },
|
| @@ -271,7 +278,7 @@ Polymer({
|
| * @return {string}
|
| * @private
|
| */
|
| - getSelectedPage_(selectedPage, items) {
|
| + getSelectedPage_: function(selectedPage, items) {
|
| return selectedPage;
|
| },
|
|
|
|
|