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

Unified Diff: remoting/webapp/crd/js/host_session.js

Issue 895723006: Fix It2Me Host doesn't kill the native process after canceling a share (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 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
« no previous file with comments | « remoting/webapp/crd/js/host_screen.js ('k') | remoting/webapp/crd/js/it2me_host_facade.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/host_session.js
diff --git a/remoting/webapp/crd/js/host_session.js b/remoting/webapp/crd/js/host_session.js
index 7fb84328835afdbf423c73d675c38600d087ac1d..fb268cd52d3b4bd3d906180ebc2bc9f9b44ec787 100644
--- a/remoting/webapp/crd/js/host_session.js
+++ b/remoting/webapp/crd/js/host_session.js
@@ -18,6 +18,7 @@ var remoting = remoting || {};
/**
* @constructor
+ * @implements {base.Disposable}
*/
remoting.HostSession = function() {
/** @type {remoting.It2MeHostFacade} @private */
@@ -39,6 +40,11 @@ remoting.HostSession.State = {
INVALID_DOMAIN_ERROR: 7
};
+remoting.HostSession.prototype.dispose = function() {
+ base.dispose(this.hostFacade_);
+ this.hostFacade_ = null;
+};
+
/**
* @param {string} stateString The string representation of the host state.
* @return {remoting.HostSession.State} The HostSession.State enum value
@@ -50,7 +56,7 @@ remoting.HostSession.State.fromString = function(stateString) {
return remoting.HostSession.State.UNKNOWN;
}
return remoting.HostSession.State[stateString];
-}
+};
/**
* Initiates a connection.
« no previous file with comments | « remoting/webapp/crd/js/host_screen.js ('k') | remoting/webapp/crd/js/it2me_host_facade.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698