Chromium Code Reviews| Index: chrome/browser/resources/md_history/synced_device_card.js |
| diff --git a/chrome/browser/resources/md_history/synced_device_card.js b/chrome/browser/resources/md_history/synced_device_card.js |
| index 4b01791c3551e8b0f16a840a60dd3ba4272f559b..d21a7d71d18bfc0dfaf6ce5e377ee0e8dd209963 100644 |
| --- a/chrome/browser/resources/md_history/synced_device_card.js |
| +++ b/chrome/browser/resources/md_history/synced_device_card.js |
| @@ -28,6 +28,12 @@ Polymer({ |
| observer: 'updateIcons_' |
| }, |
| + /** |
| + * The indexes where a window separator should be shown. |
|
tsergeant
2016/06/02 07:12:53
Nit: It would be nice to try and explain why this
calamity
2016/06/02 08:20:44
Done.
For those wondering, this was done to remov
|
| + * @type {!Array<number>} |
| + */ |
| + separatorIndexes: Array, |
| + |
| // Whether the card is open. |
| cardOpen_: { |
| type: Boolean, |
| @@ -68,5 +74,9 @@ Polymer({ |
| cr.icon.getFaviconImageSet(this.tabs[i].url); |
| } |
| }); |
| + }, |
| + |
| + isWindowSeparatorIndex: function(index, separatorIndexes) { |
|
tsergeant
2016/06/02 07:12:53
Nit: Make this a private function.
calamity
2016/06/02 08:20:44
Done.
|
| + return this.separatorIndexes.indexOf(index) != -1; |
| } |
| }); |