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 07697d4234d55edfcdc6ca70487c08e4fa40cc5c..a125877a76d4e23bc26dda5c7869fc92c917aa71 100644 |
--- a/chrome/renderer/resources/extensions/bluetooth_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/bluetooth_custom_bindings.js |
@@ -121,7 +121,7 @@ binding.registerCustomHook(function(api) { |
apiFunctions.setUpdateArgumentsPostValidate('getDevices', |
function() { |
- var args = Array.prototype.slice.call(arguments); |
+ var args = $Array.slice(arguments); |
if (bluetooth.getDevicesState != null) { |
throw new Error('Concurrent calls to getDevices are not allowed.'); |
@@ -131,7 +131,7 @@ binding.registerCustomHook(function(api) { |
if (typeof(args[args.length - 1]) == 'function') { |
state.finalCallback = args.pop(); |
- args.push( |
+ $Array.push(args, |
function() { |
if (chrome.runtime.lastError) { |
finishDeviceSearch(); |