| Index: chrome/renderer/resources/extensions/runtime_custom_bindings.js
|
| diff --git a/chrome/renderer/resources/extensions/runtime_custom_bindings.js b/chrome/renderer/resources/extensions/runtime_custom_bindings.js
|
| index 61be155e68ce283630a526bc6ebcf875efbed65a..24fcb6491be3295641b497a65435b8008acc9eb1 100644
|
| --- a/chrome/renderer/resources/extensions/runtime_custom_bindings.js
|
| +++ b/chrome/renderer/resources/extensions/runtime_custom_bindings.js
|
| @@ -27,14 +27,14 @@ binding.registerCustomHook(function(binding, id, contextType) {
|
|
|
| apiFunctions.setHandleRequest('getManifest', function() {
|
| return runtimeNatives.GetManifest();
|
| - });
|
| + }, false);
|
|
|
| apiFunctions.setHandleRequest('getURL', function(path) {
|
| path = String(path);
|
| if (!path.length || path[0] != '/')
|
| path = '/' + path;
|
| return 'chrome-extension://' + id + path;
|
| - });
|
| + }, false);
|
|
|
| apiFunctions.setUpdateArgumentsPreValidate('sendMessage',
|
| sendMessageUpdateArguments.bind(null, 'sendMessage'));
|
| @@ -46,13 +46,13 @@ binding.registerCustomHook(function(binding, id, contextType) {
|
| var port = runtime.connect(targetId || runtime.id,
|
| {name: chromeHidden.kMessageChannel});
|
| chromeHidden.Port.sendMessageImpl(port, message, responseCallback);
|
| - });
|
| + }, false);
|
|
|
| apiFunctions.setHandleRequest('sendNativeMessage',
|
| function(targetId, message, responseCallback) {
|
| var port = runtime.connectNative(targetId);
|
| chromeHidden.Port.sendMessageImpl(port, message, responseCallback);
|
| - });
|
| + }, false);
|
|
|
| apiFunctions.setUpdateArgumentsPreValidate('connect', function() {
|
| // Align missing (optional) function arguments with the arguments that
|
| @@ -99,7 +99,7 @@ binding.registerCustomHook(function(binding, id, contextType) {
|
| return chromeHidden.Port.createPort(portId, name);
|
| }
|
| throw new Error('Error connecting to extension ' + targetId);
|
| - });
|
| + }, false);
|
|
|
| //
|
| // Privileged APIs.
|
| @@ -115,7 +115,7 @@ binding.registerCustomHook(function(binding, id, contextType) {
|
| return chromeHidden.Port.createPort(portId, '');
|
| }
|
| throw new Error('Error connecting to native app: ' + nativeAppName);
|
| - });
|
| + }, false);
|
|
|
| apiFunctions.setCustomCallback('getBackgroundPage',
|
| function(name, request, response) {
|
|
|