Index: chrome/renderer/resources/extensions/app_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/app_custom_bindings.js b/chrome/renderer/resources/extensions/app_custom_bindings.js |
index 2bc8690b09d56c4a5dfe0e5485eae2657478d717..733395d574dcbf95ad30abfdef2175e6fab35d99 100644 |
--- a/chrome/renderer/resources/extensions/app_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/app_custom_bindings.js |
@@ -22,8 +22,8 @@ function wrapForLogging(fun) { |
// TODO(ataly): We need to make sure we use the right prototype for |
// fun.apply. Array slice can either be rewritten or similarly defined. |
logActivity.LogAPICall(id, "app." + fun.name, |
- Array.prototype.slice.call(arguments)); |
- return fun.apply(this, arguments); |
+ $Array.slice(arguments)); |
+ return $Function.apply(fun, this, arguments); |
}); |
} |