summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/resources/extensions/web_request_internal_custom_bindings.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/resources/extensions/web_request_internal_custom_bindings.js')
-rw-r--r--chrome/renderer/resources/extensions/web_request_internal_custom_bindings.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/renderer/resources/extensions/web_request_internal_custom_bindings.js b/chrome/renderer/resources/extensions/web_request_internal_custom_bindings.js
index 584be5f..a33599c 100644
--- a/chrome/renderer/resources/extensions/web_request_internal_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/web_request_internal_custom_bindings.js
@@ -2,13 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Custom binding for the webRequestInternal API.
-
-var binding = require('binding').Binding.create('webRequestInternal');
+// Custom bindings for the webRequestInternal API.
+var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
var sendRequest = require('sendRequest').sendRequest;
-binding.registerCustomHook(function(api) {
+chromeHidden.registerCustomHook('webRequestInternal', function(api) {
var apiFunctions = api.apiFunctions;
apiFunctions.setHandleRequest('addEventListener', function() {
@@ -23,5 +22,3 @@ binding.registerCustomHook(function(api) {
{forIOThread: true});
});
});
-
-exports.binding = binding.generate();