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

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

Issue 1101613003: [Webapp Refactor] Reliably cancels a connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ImproveUnittest
Patch Set: Created 5 years, 8 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: remoting/webapp/crd/js/desktop_remoting.js
diff --git a/remoting/webapp/crd/js/desktop_remoting.js b/remoting/webapp/crd/js/desktop_remoting.js
index a8b1cf2858d2cedb51c3ea4a589e4ae8d176fd64..39dfe5649040411f7f544cdbb8e2c6fa66d456dd 100644
--- a/remoting/webapp/crd/js/desktop_remoting.js
+++ b/remoting/webapp/crd/js/desktop_remoting.js
@@ -209,7 +209,7 @@ remoting.DesktopRemoting.prototype.disconnect_ = function() {
remoting.DesktopRemoting.prototype.connectMe2Me_ = function(hostId) {
var host = remoting.hostList.getHostForId(hostId);
base.dispose(this.activity_);
- this.activity_ = new remoting.Me2MeActivity(host);
+ this.activity_ = new remoting.Me2MeActivity(host, remoting.hostList);
this.activity_.start();
};

Powered by Google App Engine
This is Rietveld 408576698