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

Unified Diff: remoting/webapp/me2mom/client_session.js

Issue 8772065: The chromoting client logs a session-close initiated by the client itself. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add an explanatory comment. Created 9 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/me2mom/client_session.js
diff --git a/remoting/webapp/me2mom/client_session.js b/remoting/webapp/me2mom/client_session.js
index e862afa97ffbc38ab7219acdb0fab7a92092a0b3..e9ae4bf41de14e8a70ae16b6b2a0ceed98879119 100644
--- a/remoting/webapp/me2mom/client_session.js
+++ b/remoting/webapp/me2mom/client_session.js
@@ -202,6 +202,11 @@ remoting.ClientSession.prototype.removePlugin = function() {
* @return {void} Nothing.
*/
remoting.ClientSession.prototype.disconnect = function() {
+ // The plugin won't send a state change notification, so we explicitly log
+ // the fact that the connection has closed.
+ this.logToServer.logClientSessionStateChange(
+ remoting.ClientSession.State.CLOSED,
+ remoting.ClientSession.ConnectionError.NONE);
if (remoting.wcs) {
remoting.wcs.setOnIq(function(stanza) {});
this.sendIq_(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698