| 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 3e75862e14094e32974a703a7d4959977c019372..d5cf2641e84c50007c9b09394c66aa7301cb2def 100644
|
| --- a/chrome/browser/resources/md_history/app.crisper.js
|
| +++ b/chrome/browser/resources/md_history/app.crisper.js
|
| @@ -14434,7 +14434,8 @@ Polymer({
|
| },
|
|
|
| unselectAllItems: function(count) {
|
| - this.getSelectedList_().unselectAllItems(count);
|
| + if (this.getSelectedList_())
|
| + this.getSelectedList_().unselectAllItems(count);
|
| },
|
|
|
| /**
|
| @@ -15087,7 +15088,7 @@ Polymer({
|
| queryParams_: Object,
|
|
|
| // True if the window is narrow enough for the page to have a drawer.
|
| - hasDrawer_: Boolean,
|
| + hasDrawer: Boolean,
|
| },
|
|
|
| observers: [
|
| @@ -15176,6 +15177,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
|
| */
|
| @@ -15223,7 +15231,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();
|
| },
|
|
|