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

Unified Diff: chrome/browser/resources/bluetooth_internals/service_list.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 months 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
Index: chrome/browser/resources/bluetooth_internals/service_list.js
diff --git a/chrome/browser/resources/bluetooth_internals/service_list.js b/chrome/browser/resources/bluetooth_internals/service_list.js
index 0512e54aebc62d4f4efcb82ad82fd49ee394d240..60df11061dca9c9bd42b5298709ec05d7866d01c 100644
--- a/chrome/browser/resources/bluetooth_internals/service_list.js
+++ b/chrome/browser/resources/bluetooth_internals/service_list.js
@@ -147,18 +147,22 @@ cr.define('service_list', function() {
this.deviceAddress_ = deviceAddress;
this.servicesRequested_ = true;
- device_broker.connectToDevice(this.deviceAddress_).then(
- function(device) {
+ device_broker.connectToDevice(this.deviceAddress_)
+ .then(function(device) {
return device.getServices();
- }.bind(this)).then(function(response) {
+ }.bind(this))
+ .then(function(response) {
this.setData(new ArrayDataModel(response.services));
this.setSpinnerShowing(false);
this.servicesRequested_ = false;
- }.bind(this)).catch(function(error) {
+ }.bind(this))
+ .catch(function(error) {
this.servicesRequested_ = false;
Snackbar.show(
deviceAddress + ': ' + error.message, SnackbarType.ERROR,
- 'Retry', function() { this.load(deviceAddress); }.bind(this));
+ 'Retry', function() {
+ this.load(deviceAddress);
+ }.bind(this));
}.bind(this));
},
};

Powered by Google App Engine
This is Rietveld 408576698