| Index: remoting/webapp/crd/js/mock_client_plugin.js
|
| diff --git a/remoting/webapp/crd/js/mock_client_plugin.js b/remoting/webapp/crd/js/mock_client_plugin.js
|
| index 1163f1ed49769a60ea54792f92efdf34a4731ea3..b2471b237609845a206f29eff52b3e045e8be315 100644
|
| --- a/remoting/webapp/crd/js/mock_client_plugin.js
|
| +++ b/remoting/webapp/crd/js/mock_client_plugin.js
|
| @@ -196,11 +196,11 @@ remoting.MockClientPlugin.prototype.mock$setConnectionStatus = function(
|
| };
|
|
|
| /**
|
| - * @param {remoting.MockClientPlugin.AuthMethod} authMethod
|
| + * @param {remoting.ChromotingEvent.AuthMethod} authMethod
|
| * @return {Promise}
|
| */
|
| remoting.MockClientPlugin.prototype.mock$authenticate = function(authMethod) {
|
| - var AuthMethod = remoting.MockClientPlugin.AuthMethod;
|
| + var AuthMethod = remoting.ChromotingEvent.AuthMethod;
|
| var deferred = new base.Deferred();
|
|
|
| var that = this;
|
| @@ -218,7 +218,8 @@ remoting.MockClientPlugin.prototype.mock$authenticate = function(authMethod) {
|
| deferred.resolve();
|
| });
|
| break;
|
| - case AuthMethod.PAIRING:
|
| + case AuthMethod.PINLESS:
|
| + this.credentials_.getPairingInfo();
|
| deferred.resolve();
|
| }
|
| return deferred.promise();
|
| @@ -234,7 +235,7 @@ remoting.MockClientPlugin.prototype.mock$setPluginStatusChanged =
|
| };
|
|
|
| /**
|
| - * @param {remoting.MockClientPlugin.AuthMethod} authMethod
|
| + * @param {remoting.ChromotingEvent.AuthMethod} authMethod
|
| */
|
| remoting.MockClientPlugin.prototype.mock$useDefaultBehavior =
|
| function(authMethod) {
|
| @@ -294,7 +295,7 @@ remoting.MockClientPluginFactory.prototype.createPlugin =
|
| this.onPluginCreated_(this.plugin_);
|
| } else {
|
| this.plugin_.mock$useDefaultBehavior(
|
| - remoting.MockClientPlugin.AuthMethod.PIN);
|
| + remoting.ChromotingEvent.AuthMethod.PIN);
|
| }
|
|
|
| // Listens for plugin status changed.
|
| @@ -388,11 +389,3 @@ remoting.MockConnection.prototype.restore = function() {
|
| };
|
|
|
| })();
|
| -
|
| -/** @enum {string} */
|
| -remoting.MockClientPlugin.AuthMethod = {
|
| - ACCESS_CODE: 'accessCode',
|
| - PIN: 'pin',
|
| - THIRD_PARTY: 'thirdParty',
|
| - PAIRING: 'pairing'
|
| -};
|
|
|