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

Unified Diff: chrome/renderer/resources/extensions/bluetooth_custom_bindings.js

Issue 17451011: Make the externally connectable browser test clobber all of the builtins, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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/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();
« no previous file with comments | « chrome/renderer/resources/extensions/binding.js ('k') | chrome/renderer/resources/extensions/chrome_setting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698