summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/resources/event_bindings.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/resources/event_bindings.js')
-rw-r--r--chrome/renderer/resources/event_bindings.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/chrome/renderer/resources/event_bindings.js b/chrome/renderer/resources/event_bindings.js
index 7ea6bbf..aaea01c 100644
--- a/chrome/renderer/resources/event_bindings.js
+++ b/chrome/renderer/resources/event_bindings.js
@@ -45,20 +45,12 @@ var chrome = chrome || {};
// An array of all attached event objects, used for detaching on unload.
var allAttachedEvents = [];
- // By default (for content scripts), this function returns false. Extension
- // contexts override this to do the right thing.
- chromeHidden.canAccessIncognito = function() {
- return false;
- }
-
chromeHidden.Event = {};
// Dispatches a named event with the given JSON array, which is deserialized
// before dispatch. The JSON array is the list of arguments that will be
// sent with the event callback.
- chromeHidden.Event.dispatchJSON = function(name, args, hasIncognitoData) {
- if (hasIncognitoData && !chromeHidden.canAccessIncognito())
- return;
+ chromeHidden.Event.dispatchJSON = function(name, args) {
if (attachedNamedEvents[name]) {
if (args) {
args = JSON.parse(args);