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

Unified Diff: chrome/common/extensions/docs/examples/extensions/native_messaging/popup.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/common/extensions/docs/examples/extensions/native_messaging/popup.js
diff --git a/chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js b/chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js
index 07757e146d6d0fe0a350b5692df05ecfd87c9792..30f87786a72964480a9222db572b69d52b5d53fe 100644
--- a/chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js
+++ b/chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js
@@ -14,7 +14,7 @@ function gotNativeMessage(message) {
function sendNativeMessage() {
if (!port) {
- port = chrome.extension.connectNative('echo.py', {"message": "Hi there!"});
+ port = chrome.runtime.connectNative('echo.py', {"message": "Hi there!"});
port.onMessage.addListener(gotNativeMessage);
document.getElementById('input-text').style.display = 'block';
document.getElementById('send-native-message').innerHTML = 'Send Message';

Powered by Google App Engine
This is Rietveld 408576698