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_); |
}; |