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 e1c2ffb64fb37be41b8a26cd034653002d22ffe1..c5e63ac1fa50aad9a6a1d5149e145a8353bdb33a 100644 |
--- a/chrome/renderer/resources/extensions/runtime_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/runtime_custom_bindings.js |
@@ -47,7 +47,7 @@ chromeHidden.registerCustomHook('runtime', function(bindings, id, contextType) { |
apiFunctions.setHandleRequest('sendNativeMessage', |
function(targetId, message, responseCallback) { |
- var port = chrome.extension.connectNative( |
+ var port = chrome.runtime.connectNative( |
targetId, message, chromeHidden.kNativeMessageChannel); |
chromeHidden.Port.sendMessageImpl(port, '', responseCallback); |
}); |