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

Unified Diff: chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js

Issue 12386018: Revert 185189. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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
===================================================================
--- chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js (revision 185206)
+++ chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js (working copy)
@@ -14,7 +14,8 @@
function sendNativeMessage() {
if (!port) {
- port = chrome.extension.connectNative('com.google.chrome.test.echo');
+ app = navigator.platform.match(/win/i) ? 'echo.bat' : 'echo.py';
+ port = chrome.extension.connectNative(app);
port.onMessage.addListener(gotNativeMessage);
document.getElementById('input-text').style.display = 'block';
document.getElementById('send-native-message').innerHTML = 'Send Message';
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/test/data/extensions/api_test/native_messaging/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698