Chromium Code Reviews| 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 b67bf99d2671b9ac5f996c6674e9b41a0499ef1d..458b4ebc9f016c553427d5d4c38b0e74b8984e61 100644 |
| --- a/chrome/browser/resources/md_history/app.js |
| +++ b/chrome/browser/resources/md_history/app.js |
| @@ -33,12 +33,6 @@ Polymer({ |
| observer: 'selectedPageChanged_', |
| }, |
| - // Whether domain-grouped history is enabled. |
| - grouped_: { |
| - type: Boolean, |
| - reflectToAttribute: true, |
| - }, |
| - |
| /** @type {!QueryResult} */ |
| queryResult_: { |
| type: Object, |
| @@ -106,8 +100,6 @@ Polymer({ |
| /** @override */ |
| attached: function() { |
| - this.grouped_ = loadTimeData.getBoolean('groupByDomain'); |
| - |
| cr.ui.decorate('command', cr.ui.Command); |
| this.boundOnCanExecute_ = this.onCanExecute_.bind(this); |
| this.boundOnCommand_ = this.onCommand_.bind(this); |
| @@ -234,9 +226,6 @@ Polymer({ |
| e = /** @type {cr.ui.CanExecuteEvent} */ (e); |
| switch (e.command.id) { |
| case 'find-command': |
| - case 'toggle-grouped': |
| - e.canExecute = true; |
| - break; |
| case 'slash-command': |
| e.canExecute = !this.$.toolbar.searchField.isSearchFocused(); |
| break; |
| @@ -255,8 +244,6 @@ Polymer({ |
| this.focusToolbarSearchField(); |
| if (e.command.id == 'delete-command') |
|
Dan Beam
2017/02/07 18:14:13
nit: else if or switch()
|
| this.deleteSelected(); |
| - if (e.command.id == 'toggle-grouped') |
| - this.grouped_ = !this.grouped_; |
| }, |
| /** |
| @@ -313,9 +300,7 @@ Polymer({ |
| return hasSyncedResults && selectedPage != 'syncedTabs'; |
| }, |
| - /** |
| - * @private |
| - */ |
| + /** @private */ |
| selectedPageChanged_: function() { |
| this.unselectAll(); |
| this.historyViewChanged_(); |
| @@ -377,17 +362,7 @@ Polymer({ |
| HistoryPageViewHistogram.SIGNIN_PROMO; |
| break; |
| default: |
| - switch (this.queryState_.range) { |
| - case HistoryRange.ALL_TIME: |
| - histogramValue = HistoryPageViewHistogram.HISTORY; |
| - break; |
| - case HistoryRange.WEEK: |
| - histogramValue = HistoryPageViewHistogram.GROUPED_WEEK; |
| - break; |
| - case HistoryRange.MONTH: |
| - histogramValue = HistoryPageViewHistogram.GROUPED_MONTH; |
| - break; |
| - } |
| + histogramValue = HistoryPageViewHistogram.HISTORY; |
| break; |
| } |