Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3655)

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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
This is Rietveld 408576698