| 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 93f805653292a613e3cc88f2c9e31bbb1b6a2616..22f36b8bafeb1502d3f274ecffbcad535bac6fee 100644
|
| --- a/chrome/browser/resources/md_history/app.js
|
| +++ b/chrome/browser/resources/md_history/app.js
|
| @@ -19,7 +19,11 @@ Polymer({
|
|
|
| properties: {
|
| // The id of the currently selected page.
|
| - selectedPage_: String,
|
| + selectedPage_: {
|
| + type: String,
|
| + value: 'history-list',
|
| + observer: 'unselectAll'
|
| + },
|
|
|
| // Whether domain-grouped history is enabled.
|
| grouped_: Boolean,
|
| @@ -60,6 +64,7 @@ Polymer({
|
|
|
| // TODO(calamity): Replace these event listeners with data bound properties.
|
| listeners: {
|
| + 'cr-toolbar-menu-click': 'onMenuClick_',
|
| 'history-checkbox-select': 'checkboxSelected',
|
| 'unselect-all': 'unselectAll',
|
| 'delete-selected': 'deleteSelected',
|
| @@ -72,6 +77,10 @@ Polymer({
|
| this.grouped_ = loadTimeData.getBoolean('groupByDomain');
|
| },
|
|
|
| + onMenuClick_: function() {
|
| + this.$['side-bar'].toggle();
|
| + },
|
| +
|
| /**
|
| * Listens for history-item being selected or deselected (through checkbox)
|
| * and changes the view of the top toolbar.
|
|
|