Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: chrome/browser/resources/md_history/synced_device_card.js

Issue 2597573002: MD History/Downloads: convert .bind(this) and function property values to use => (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'history-synced-device-card', 6 is: 'history-synced-device-card',
7 7
8 properties: { 8 properties: {
9 // Name of the synced device. 9 // Name of the synced device.
10 device: String, 10 device: String,
11 11
12 // When the device information was last updated. 12 // When the device information was last updated.
13 lastUpdateTime: String, 13 lastUpdateTime: String,
14 14
15 /** 15 /**
16 * The list of tabs open for this device. 16 * The list of tabs open for this device.
17 * @type {!Array<!ForeignSessionTab>} 17 * @type {!Array<!ForeignSessionTab>}
18 */ 18 */
19 tabs: { 19 tabs: {
20 type: Array, 20 type: Array,
21 value: function() { return []; }, 21 value: () => [],
dpapad 2016/12/21 23:49:53 Can we use arrow only when: 1) Used inside a memb
michaelpg 2016/12/22 07:35:19 why?
Dan Beam 2016/12/22 18:33:17 well, I obviously agreed with ... myself when I ma
22 observer: 'updateIcons_' 22 observer: 'updateIcons_'
23 }, 23 },
24 24
25 /** 25 /**
26 * The indexes where a window separator should be shown. The use of a 26 * The indexes where a window separator should be shown. The use of a
27 * separate array here is necessary for window separators to appear 27 * separate array here is necessary for window separators to appear
28 * correctly in search. See http://crrev.com/2022003002 for more details. 28 * correctly in search. See http://crrev.com/2022003002 for more details.
29 * @type {!Array<number>} 29 * @type {!Array<number>}
30 */ 30 */
31 separatorIndexes: Array, 31 separatorIndexes: Array,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 }); 155 });
156 e.stopPropagation(); // Prevent iron-collapse. 156 e.stopPropagation(); // Prevent iron-collapse.
157 }, 157 },
158 158
159 onLinkRightClick_: function() { 159 onLinkRightClick_: function() {
160 md_history.BrowserService.getInstance().recordHistogram( 160 md_history.BrowserService.getInstance().recordHistogram(
161 SYNCED_TABS_HISTOGRAM_NAME, SyncedTabsHistogram.LINK_RIGHT_CLICKED, 161 SYNCED_TABS_HISTOGRAM_NAME, SyncedTabsHistogram.LINK_RIGHT_CLICKED,
162 SyncedTabsHistogram.LIMIT); 162 SyncedTabsHistogram.LIMIT);
163 }, 163 },
164 }); 164 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/list_container.js ('k') | chrome/browser/resources/md_history/synced_device_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698