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

Unified Diff: chrome/browser/resources/bluetooth_internals/interfaces.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/interfaces.js
diff --git a/chrome/browser/resources/bluetooth_internals/interfaces.js b/chrome/browser/resources/bluetooth_internals/interfaces.js
index 20eb2b8b31db189f480f6aa7a34833fbb003a8b4..5bec864ca0411c6f0a133069a37125a29c26305b 100644
--- a/chrome/browser/resources/bluetooth_internals/interfaces.js
+++ b/chrome/browser/resources/bluetooth_internals/interfaces.js
@@ -9,11 +9,13 @@
cr.define('interfaces', function() {
/**
- * Overriden by tests to give them a chance to setup a fake Mojo browser proxy
- * before any other code executes.
- * @return {!Promise} A promise firing once necessary setup has been completed.
- */
- var setupFn = window.setupFn || function() { return Promise.resolve(); };
+ * Overriden by tests to give them a chance to setup a fake Mojo browser proxy
+ * before any other code executes.
+ * @return {!Promise} A promise firing once necessary setup has been completed.
+ */
+ var setupFn = window.setupFn || function() {
+ return Promise.resolve();
+ };
/**
* Sets up Mojo interfaces and adds them to window.interfaces.
@@ -22,17 +24,18 @@ cr.define('interfaces', function() {
function setupInterfaces() {
return setupFn().then(function() {
return importModules([
- 'content/public/renderer/frame_interfaces',
- 'device/bluetooth/public/interfaces/adapter.mojom',
- 'device/bluetooth/public/interfaces/device.mojom',
- 'mojo/public/js/bindings',
- ]).then(function([frameInterfaces, bluetoothAdapter, bluetoothDevice,
- bindings]) {
- interfaces.BluetoothAdapter = bluetoothAdapter;
- interfaces.BluetoothDevice = bluetoothDevice;
- interfaces.Bindings = bindings;
- interfaces.FrameInterfaces = frameInterfaces;
- });
+ 'content/public/renderer/frame_interfaces',
+ 'device/bluetooth/public/interfaces/adapter.mojom',
+ 'device/bluetooth/public/interfaces/device.mojom',
+ 'mojo/public/js/bindings',
+ ])
+ .then(function(
+ [frameInterfaces, bluetoothAdapter, bluetoothDevice, bindings]) {
+ interfaces.BluetoothAdapter = bluetoothAdapter;
+ interfaces.BluetoothDevice = bluetoothDevice;
+ interfaces.Bindings = bindings;
+ interfaces.FrameInterfaces = frameInterfaces;
+ });
});
}

Powered by Google App Engine
This is Rietveld 408576698