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

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

Issue 1097133002: [Webapp Refactor] Remove remoting.SessionConnector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge conflicts 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
« no previous file with comments | « remoting/webapp/crd/js/desktop_remoting_activity.js ('k') | remoting/webapp/crd/js/me2me_activity.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/it2me_activity.js
diff --git a/remoting/webapp/crd/js/it2me_activity.js b/remoting/webapp/crd/js/it2me_activity.js
index 4ee50c3b1bcf291d9df6e37d001b0fba7778c371..e5dc2db7054fd81abae923b92e42c8235e69db7c 100644
--- a/remoting/webapp/crd/js/it2me_activity.js
+++ b/remoting/webapp/crd/js/it2me_activity.js
@@ -185,13 +185,9 @@ remoting.It2MeActivity.prototype.onHostInfo_ = function(xhrResponse) {
remoting.It2MeActivity.prototype.connect_ = function(host) {
base.dispose(this.desktopActivity_);
this.desktopActivity_ = new remoting.DesktopRemotingActivity(this);
- var sessionConnector = remoting.SessionConnector.factory.createConnector(
- document.getElementById('client-container'),
- remoting.app_capabilities(),
- this.desktopActivity_);
- sessionConnector.connect(
- remoting.Application.Mode.IT2ME, host,
- new remoting.CredentialsProvider({ accessCode: this.passCode_ }));
+ remoting.app.setConnectionMode(remoting.Application.Mode.IT2ME);
+ this.desktopActivity_.start(
+ host, new remoting.CredentialsProvider({ accessCode: this.passCode_ }));
};
/**
« no previous file with comments | « remoting/webapp/crd/js/desktop_remoting_activity.js ('k') | remoting/webapp/crd/js/me2me_activity.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698