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

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

Issue 814133007: [Chromoting] Re-add call to chrome.app.window.current().close() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | remoting/webapp/crd/js/client_session.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/client_screen.js
diff --git a/remoting/webapp/crd/js/client_screen.js b/remoting/webapp/crd/js/client_screen.js
index 69fb0be410a0c432506d9a57ade127ad42a3cfd7..bdafd40a3f24a3959d35f86cdae39196c6e3d2ba 100644
--- a/remoting/webapp/crd/js/client_screen.js
+++ b/remoting/webapp/crd/js/client_screen.js
@@ -55,7 +55,7 @@ remoting.disconnect = function() {
} else {
remoting.setMode(remoting.AppMode.CLIENT_SESSION_FINISHED_ME2ME);
}
- remoting.clientSession.disconnect(remoting.Error.NONE);
+ remoting.app.onDisconnected();
remoting.clientSession = null;
console.log('Disconnected.');
};
@@ -79,6 +79,7 @@ function onClientStateChange_(state) {
} else {
remoting.setMode(remoting.AppMode.CLIENT_SESSION_FINISHED_ME2ME);
}
+ remoting.app.onDisconnected();
break;
case remoting.ClientSession.State.FAILED:
« no previous file with comments | « no previous file | remoting/webapp/crd/js/client_session.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698