Index: extensions/renderer/resources/runtime_custom_bindings.js |
diff --git a/extensions/renderer/resources/runtime_custom_bindings.js b/extensions/renderer/resources/runtime_custom_bindings.js |
index 1efdadcea9b8f65362d9f75caaf293ae0f5b1e53..fb461061cd5d73e56b5e09ff7513eb7c8b01880b 100644 |
--- a/extensions/renderer/resources/runtime_custom_bindings.js |
+++ b/extensions/renderer/resources/runtime_custom_bindings.js |
@@ -8,6 +8,7 @@ var binding = require('binding').Binding.create('runtime'); |
var messaging = require('messaging'); |
var runtimeNatives = requireNative('runtime'); |
+var messagingNatives = requireNative('messaging_natives'); |
var process = requireNative('process'); |
var utils = require('utils'); |
@@ -154,8 +155,8 @@ binding.registerCustomHook(function(binding, id, contextType) { |
var includeTlsChannelId = |
!!(connectInfo && connectInfo.includeTlsChannelId); |
- var portId = runtimeNatives.OpenChannelToExtension(targetId, name, |
- includeTlsChannelId); |
+ var portId = messagingNatives.OpenChannelToExtension(targetId, name, |
+ includeTlsChannelId); |
if (portId >= 0) |
return messaging.createPort(portId, name); |
}); |
@@ -168,7 +169,7 @@ binding.registerCustomHook(function(binding, id, contextType) { |
apiFunctions.setHandleRequest('connectNative', |
function(nativeAppName) { |
- var portId = runtimeNatives.OpenChannelToNativeApp(nativeAppName); |
+ var portId = messagingNatives.OpenChannelToNativeApp(nativeAppName); |
if (portId >= 0) |
return messaging.createPort(portId, ''); |
throw new Error('Error connecting to native app: ' + nativeAppName); |