| Index: chrome/renderer/resources/extensions/binding.js
|
| diff --git a/chrome/renderer/resources/extensions/binding.js b/chrome/renderer/resources/extensions/binding.js
|
| index 80c81242e7d2ca63da64bb1a40bcb68829ee973e..6470b76c38fde686790566c857192adb872ae6ed 100644
|
| --- a/chrome/renderer/resources/extensions/binding.js
|
| +++ b/chrome/renderer/resources/extensions/binding.js
|
| @@ -53,13 +53,14 @@ APIFunctions.prototype.setHook_ =
|
| APIFunctions.prototype.setHandleRequest =
|
| function(apiName, customizedFunction) {
|
| var prefix = this.namespace;
|
| + // TODO(ataly): Need to replace/redefine apply and slice.
|
| return this.setHook_(apiName, 'handleRequest',
|
| function() {
|
| var ret = customizedFunction.apply(this, arguments);
|
| // Logs API calls to the Activity Log if it doesn't go through an
|
| // ExtensionFunction.
|
| if (!sendRequestHandler.getCalledSendRequest())
|
| - logActivity(extensionId, prefix + "." + apiName,
|
| + logActivity("API", extensionId, prefix + "." + apiName,
|
| Array.prototype.slice.call(arguments));
|
| return ret;
|
| });
|
|
|