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

Unified Diff: remoting/webapp/host_native_messaging.js

Issue 49113003: It2Me native messaging: GYP and source refactoring (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
« remoting/remoting.gyp ('K') | « remoting/remoting.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/host_native_messaging.js
diff --git a/remoting/webapp/host_native_messaging.js b/remoting/webapp/host_native_messaging.js
index 8c76c424a3f535e45d05498212683b89b56af6f5..b51111870fd3e95f19a9b11e0e65bd0cc3eb739d 100644
--- a/remoting/webapp/host_native_messaging.js
+++ b/remoting/webapp/host_native_messaging.js
@@ -29,7 +29,7 @@ remoting.HostNativeMessaging = function() {
this.pendingReplies_ = {};
/** @type {?chrome.extension.Port} @private */
- this.port_ = null;
+ this.me2mePort_ = null;
/** @type {string} @private */
this.version_ = '';
@@ -82,10 +82,10 @@ remoting.HostNativeMessaging.prototype.initialize = function(onDone, onError) {
}
try {
- this.port_ = chrome.runtime.connectNative(
+ this.me2mePort_ = chrome.runtime.connectNative(
'com.google.chrome.remote_desktop');
- this.port_.onMessage.addListener(this.onIncomingMessage_.bind(this));
- this.port_.onDisconnect.addListener(this.onDisconnect_.bind(this));
+ this.me2mePort_.onMessage.addListener(this.onIncomingMessage_.bind(this));
+ this.me2mePort_.onDisconnect.addListener(this.onDisconnect_.bind(this));
this.postMessage_({type: 'hello'}, onDone,
onError.bind(null, remoting.Error.UNEXPECTED));
} catch (err) {
@@ -177,7 +177,7 @@ remoting.HostNativeMessaging.prototype.postMessage_ =
message['id'] = id;
this.pendingReplies_[id] = new remoting.HostNativeMessaging.PendingReply(
message.type + 'Response', onDone, onError);
- this.port_.postMessage(message);
+ this.me2mePort_.postMessage(message);
};
/**
« remoting/remoting.gyp ('K') | « remoting/remoting.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698