Chromium Code Reviews

Unified Diff: chrome/renderer/resources/extensions/runtime_custom_bindings.js

Issue 11745015: Update references to the extension messaging APIs to point to the "runtime" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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);
});

Powered by Google App Engine