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

Unified Diff: chrome/renderer/resources/extensions/context_menus_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/context_menus_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/context_menus_custom_bindings.js b/chrome/renderer/resources/extensions/context_menus_custom_bindings.js
index f143ee662b3c1aeb1711c17b0426a61fc386e848..5323f73149b5bb650359ffa762e2f878a8d200e2 100644
--- a/chrome/renderer/resources/extensions/context_menus_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/context_menus_custom_bindings.js
@@ -39,7 +39,7 @@ binding.registerCustomHook(function(bindingsAPI) {
var id = arguments[0].menuItemId;
var onclick = contextMenus.handlersForId(id)[id];
if (onclick) {
- onclick.apply(null, arguments);
+ $Function.apply(onclick, null, arguments);
}
});
};

Powered by Google App Engine
This is Rietveld 408576698