| Index: chrome/browser/resources/options/chromeos/bluetooth_device_list.js
|
| diff --git a/chrome/browser/resources/options/chromeos/bluetooth_device_list.js b/chrome/browser/resources/options/chromeos/bluetooth_device_list.js
|
| index c7fcfd96ac3deb11da3648836385dfaf6f142838..d04e4db357f866d2f289b4361453e4926c2fe07f 100644
|
| --- a/chrome/browser/resources/options/chromeos/bluetooth_device_list.js
|
| +++ b/chrome/browser/resources/options/chromeos/bluetooth_device_list.js
|
| @@ -59,8 +59,7 @@ cr.define('options.system.bluetooth', function() {
|
| // * Paired, not connected but connectable devices: regular and
|
| // * Paired, not connected and not connectable devices: grayed out.
|
| this.connected = connecting || (paired && connected);
|
| - this.notconnectable = paired && !connecting &&
|
| - !connected && !connectable;
|
| + this.notconnectable = paired && !connecting && !connected && !connectable;
|
| // "paired" devices are those that are remembered but not connected.
|
| this.paired = paired && !connected && connectable;
|
|
|
| @@ -69,8 +68,8 @@ cr.define('options.system.bluetooth', function() {
|
| // can be in the process of connecting and pairing, so we check connecting
|
| // first.
|
| if (connecting) {
|
| - content = loadTimeData.getStringF('bluetoothDeviceConnecting',
|
| - this.data.name);
|
| + content = loadTimeData.getStringF(
|
| + 'bluetoothDeviceConnecting', this.data.name);
|
| }
|
| label.textContent = content;
|
| this.contentElement.appendChild(label);
|
| @@ -148,8 +147,8 @@ cr.define('options.system.bluetooth', function() {
|
| refresh: function(opt_selection) {
|
| // TODO(kevers): Investigate if the stale cache issue can be fixed in
|
| // cr.ui.list.
|
| - var selectedDevice = opt_selection ? opt_selection :
|
| - this.getSelectedDevice_();
|
| + var selectedDevice =
|
| + opt_selection ? opt_selection : this.getSelectedDevice_();
|
| this.invalidate();
|
| this.redraw();
|
| if (selectedDevice)
|
| @@ -244,10 +243,7 @@ cr.define('options.system.bluetooth', function() {
|
| * @private
|
| */
|
| getDefaultItemSize_: function() {
|
| - return {
|
| - height: this.itemHeight_,
|
| - width: this.itemWidth_
|
| - };
|
| + return {height: this.itemHeight_, width: this.itemWidth_};
|
| },
|
|
|
| /**
|
| @@ -261,7 +257,7 @@ cr.define('options.system.bluetooth', function() {
|
| if (this.disabled)
|
| return;
|
|
|
| - var target = /** @type {HTMLElement} */(e.target);
|
| + var target = /** @type {HTMLElement} */ (e.target);
|
| if (!target.classList.contains('row-delete-button'))
|
| return;
|
|
|
| @@ -294,8 +290,8 @@ cr.define('options.system.bluetooth', function() {
|
| }
|
| });
|
| }
|
| - chrome.send('coreOptionsUserMetricsAction',
|
| - ['Options_BluetoothRemoveDevice']);
|
| + chrome.send(
|
| + 'coreOptionsUserMetricsAction', ['Options_BluetoothRemoveDevice']);
|
| }
|
| },
|
|
|
| @@ -331,8 +327,8 @@ cr.define('options.system.bluetooth', function() {
|
|
|
| cr.defineProperty(BluetoothListItem, 'connecting', cr.PropertyKind.BOOL_ATTR);
|
|
|
| - cr.defineProperty(BluetoothListItem, 'notconnectable',
|
| - cr.PropertyKind.BOOL_ATTR);
|
| + cr.defineProperty(
|
| + BluetoothListItem, 'notconnectable', cr.PropertyKind.BOOL_ATTR);
|
|
|
| return {
|
| BluetoothListItem: BluetoothListItem,
|
|
|