Index: chrome/renderer/resources/extensions/bluetooth_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/bluetooth_custom_bindings.js b/chrome/renderer/resources/extensions/bluetooth_custom_bindings.js |
index e1f75f5d78ac9ff69d574696852ab3b6e6308462..84b0652905064b5996ecf9a77bb048f605ded500 100644 |
--- a/chrome/renderer/resources/extensions/bluetooth_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/bluetooth_custom_bindings.js |
@@ -4,14 +4,17 @@ |
// Custom bindings for the Bluetooth API. |
+var bindings = new (require('schema_binding_generator').Bindings)('bluetooth'); |
+ |
var chromeHidden = requireNative('chrome_hidden').GetChromeHidden(); |
+var chrome = requireNative('chrome').GetChrome(); |
var sendRequest = require('sendRequest').sendRequest; |
var lastError = require('lastError'); |
// Use custom bindings to create an undocumented event listener that will |
// receive events about device discovery and call the event listener that was |
// provided with the request to begin discovery. |
-chromeHidden.registerCustomHook('bluetooth', function(api) { |
+bindings.registerCustomHook(function(api) { |
var apiFunctions = api.apiFunctions; |
chromeHidden.bluetooth = {}; |
@@ -154,3 +157,5 @@ chromeHidden.registerCustomHook('bluetooth', function(api) { |
return args; |
}); |
}); |
+ |
+exports.bindings = bindings.generate(); |