| Index: chrome/renderer/resources/extensions/web_request_custom_bindings.js
|
| ===================================================================
|
| --- chrome/renderer/resources/extensions/web_request_custom_bindings.js (revision 125813)
|
| +++ chrome/renderer/resources/extensions/web_request_custom_bindings.js (working copy)
|
| @@ -4,11 +4,13 @@
|
|
|
| // Custom bindings for the webRequest API.
|
|
|
| -var webRequestNatives = requireNative('web_request');
|
| -var GetUniqueSubEventName = webRequestNatives.GetUniqueSubEventName;
|
| +(function() {
|
|
|
| -var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
|
| +native function GetChromeHidden();
|
| +native function GetUniqueSubEventName(eventName);
|
|
|
| +var chromeHidden = GetChromeHidden();
|
| +
|
| // WebRequestEvent object. This is used for special webRequest events with
|
| // extra parameters. Each invocation of addListener creates a new named
|
| // sub-event. That sub-event is associated with the extra parameters in the
|
| @@ -170,3 +172,5 @@
|
| {forIOThread: true});
|
| });
|
| });
|
| +
|
| +})();
|
|
|