Index: extensions/renderer/resources/web_request_internal_custom_bindings.js |
diff --git a/extensions/renderer/resources/web_request_internal_custom_bindings.js b/extensions/renderer/resources/web_request_internal_custom_bindings.js |
index 7c9e279a0464031deb9ff669d3a488aaf8a55f1d..df10729e6b3fb66ebe2df2912d7ca9c127e1ca02 100644 |
--- a/extensions/renderer/resources/web_request_internal_custom_bindings.js |
+++ b/extensions/renderer/resources/web_request_internal_custom_bindings.js |
@@ -175,17 +175,20 @@ binding.registerCustomHook(function(api) { |
}); |
}); |
-var WebRequestEvent = utils.expose('WebRequestEvent', |
- WebRequestEventImpl, |
- { functions: [ |
- 'hasListener', |
- 'hasListeners', |
- 'addListener', |
- 'removeListener', |
- 'addRules', |
- 'removeRules', |
- 'getRules' |
-] }); |
+function WebRequestEvent() { |
+ privates(WebRequestEvent).constructPrivate(this, arguments); |
+} |
+utils.expose(WebRequestEvent, WebRequestEventImpl, { |
+ functions: [ |
+ 'hasListener', |
+ 'hasListeners', |
+ 'addListener', |
+ 'removeListener', |
+ 'addRules', |
+ 'removeRules', |
+ 'getRules', |
+ ], |
+}); |
webRequestInternal = binding.generate(); |
exports.$set('binding', webRequestInternal); |