| 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..afe3b04132b292737fe7af6cf43828280e16731e 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;
|
| @@ -253,10 +242,8 @@ Polymer({
|
| onCommand_: function(e) {
|
| if (e.command.id == 'find-command' || e.command.id == 'slash-command')
|
| this.focusToolbarSearchField();
|
| - if (e.command.id == 'delete-command')
|
| + else if (e.command.id == 'delete-command')
|
| 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;
|
| }
|
|
|
|
|