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

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

Issue 1067133002: Move ProtocolExtensionManager from SessionConnector into its own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and Reviewer's feedback 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.js ('k') | remoting/webapp/crd/js/session_connector.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/me2me_activity.js
diff --git a/remoting/webapp/crd/js/me2me_activity.js b/remoting/webapp/crd/js/me2me_activity.js
index fd7ab45ab79d67b9f07d2870bfe585320c2b0a26..9904e93ef4893a8797052fd89f0ed0d2abeb57b3 100644
--- a/remoting/webapp/crd/js/me2me_activity.js
+++ b/remoting/webapp/crd/js/me2me_activity.js
@@ -120,11 +120,11 @@ remoting.Me2MeActivity.prototype.onConnected = function(connectionInfo) {
// Reset the refresh flag so that the next connection will retry if needed.
this.retryOnHostOffline_ = true;
+ var plugin = connectionInfo.plugin();
if (remoting.app.hasCapability(remoting.ClientSession.Capability.CAST)) {
- this.connector_.registerProtocolExtension(
- new remoting.CastExtensionHandler());
+ plugin.extensions().register(new remoting.CastExtensionHandler());
}
- this.connector_.registerProtocolExtension(new remoting.GnubbyAuthHandler());
+ plugin.extensions().register(new remoting.GnubbyAuthHandler());
this.pinDialog_.requestPairingIfNecessary(connectionInfo.plugin(),
this.connector_);
};
« no previous file with comments | « remoting/webapp/crd/js/desktop_remoting.js ('k') | remoting/webapp/crd/js/session_connector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698