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

Unified Diff: chrome/browser/resources/md_history/synced_device_manager.js

Issue 2578013002: [MD History] clang-format all javascript. (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_history/synced_device_card.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/synced_device_manager.js
diff --git a/chrome/browser/resources/md_history/synced_device_manager.js b/chrome/browser/resources/md_history/synced_device_manager.js
index 6dd7f7881bc2bb6b6a4acfffe6ed9d24b49dd500..a2a400e259bf1e6c20a9cfa8ad80283385bad12a 100644
--- a/chrome/browser/resources/md_history/synced_device_manager.js
+++ b/chrome/browser/resources/md_history/synced_device_manager.js
@@ -20,15 +20,24 @@ Polymer({
/**
* @type {?Array<!ForeignSession>}
*/
- sessionList: {type: Array, observer: 'updateSyncedDevices'},
+ sessionList: {
+ type: Array,
+ observer: 'updateSyncedDevices',
+ },
- searchTerm: {type: String, observer: 'searchTermChanged'},
+ searchTerm: {
+ type: String,
+ observer: 'searchTermChanged',
+ },
/**
* An array of synced devices with synced tab data.
* @type {!Array<!ForeignDeviceInternal>}
*/
- syncedDevices_: {type: Array, value: function() { return []; }},
+ syncedDevices_: {
+ type: Array,
+ value: function() { return []; },
+ },
/** @private */
signInState: {
@@ -91,9 +100,7 @@ Polymer({
if (newTabs.length == 0)
continue;
- newTabs.forEach(function(tab) {
- tab.windowId = windowId;
- });
+ newTabs.forEach(function(tab) { tab.windowId = windowId; });
var windowAdded = false;
if (!this.searchTerm) {
@@ -152,8 +159,7 @@ Polymer({
browserService.recordHistogram(
SYNCED_TABS_HISTOGRAM_NAME, SyncedTabsHistogram.OPEN_ALL,
SyncedTabsHistogram.LIMIT);
- browserService.openForeignSessionAllTabs(
- menu.itemData);
+ browserService.openForeignSessionAllTabs(menu.itemData);
menu.closeMenu();
},
@@ -252,8 +258,8 @@ Polymer({
if (sessionList.length > 0 && !this.hasSeenForeignData_) {
this.hasSeenForeignData_ = true;
md_history.BrowserService.getInstance().recordHistogram(
- SYNCED_TABS_HISTOGRAM_NAME, SyncedTabsHistogram.HAS_FOREIGN_DATA,
- SyncedTabsHistogram.LIMIT);
+ SYNCED_TABS_HISTOGRAM_NAME, SyncedTabsHistogram.HAS_FOREIGN_DATA,
+ SyncedTabsHistogram.LIMIT);
}
var devices = [];
« no previous file with comments | « chrome/browser/resources/md_history/synced_device_card.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698