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

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

Issue 2488093003: bluetooth: Componentize device list fixes (Closed)
Patch Set: Combine private and type Created 4 years, 1 month 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 391deacebed06636077e5ddef2727afff191ac68..a48eb81f6311c93ec7cc6924db863bd67ce92ad7 100644
--- a/chrome/browser/resources/bluetooth_internals/interfaces.js
+++ b/chrome/browser/resources/bluetooth_internals/interfaces.js
@@ -9,10 +9,10 @@
cr.define('interfaces', function() {
/**
- * Imports Mojo interfaces and adds them to window.interfaces.
+ * Sets up Mojo interfaces and adds them to window.interfaces.
* @return {Promise}
*/
- function importInterfaces() {
+ function setupInterfaces() {
return importModules([
'content/public/renderer/frame_interfaces',
'device/bluetooth/public/interfaces/adapter.mojom',
@@ -20,20 +20,14 @@ cr.define('interfaces', function() {
'mojo/public/js/connection',
]).then(function([frameInterfaces, bluetoothAdapter, bluetoothDevice,
connection]) {
- Object.assign(interfaces, {
- BluetoothAdapter: bluetoothAdapter,
- BluetoothDevice: bluetoothDevice,
- Connection: connection,
- FrameInterfaces: frameInterfaces,
- });
+ interfaces.BluetoothAdapter = bluetoothAdapter;
+ interfaces.BluetoothDevice = bluetoothDevice;
+ interfaces.Connection = connection;
+ interfaces.FrameInterfaces = frameInterfaces;
});
}
return {
- BluetoothAdapter: {},
- BluetoothDevice: {},
- Connection: {},
- FrameInterfaces: {},
- importInterfaces: importInterfaces,
+ setupInterfaces: setupInterfaces,
};
});

Powered by Google App Engine
This is Rietveld 408576698