Chromium Code Reviews| Index: remoting/webapp/client_screen.js |
| diff --git a/remoting/webapp/client_screen.js b/remoting/webapp/client_screen.js |
| index ffd745cf1c358151b77b0123514c16f99a43bb1d..bd74bfe83d9985b1cd1c3a3d28f6494d17c01a2d 100644 |
| --- a/remoting/webapp/client_screen.js |
| +++ b/remoting/webapp/client_screen.js |
| @@ -265,8 +265,11 @@ remoting.connectMe2MeHostVersionAcknowledged_ = function(host) { |
| thirdPartyTokenFetcher.fetchToken(); |
| }; |
| - /** @param {function(string):void} onPinFetched */ |
| - var requestPin = function(onPinFetched) { |
| + /** |
| + * @param {function(string):void} onPinFetched |
| + * @param {boolean} supportsPairing |
| + */ |
| + var requestPin = function(onPinFetched, supportsPairing) { |
|
rmsousa
2013/05/23 00:14:59
Nit: Does javascript also have the convention of p
Jamie
2013/05/23 01:10:08
Done.
|
| /** @type {Element} */ |
| var pinForm = document.getElementById('pin-form'); |
| /** @type {Element} */ |
| @@ -296,6 +299,11 @@ remoting.connectMe2MeHostVersionAcknowledged_ = function(host) { |
| pinForm.addEventListener('submit', onSubmitOrCancel, false); |
| pinCancel.addEventListener('click', onSubmitOrCancel, false); |
| + var rememberPin = document.getElementById('remember-pin'); |
| + rememberPin.hidden = !supportsPairing; |
| + var checkbox = /** @type {HTMLInputElement} */ |
| + document.getElementById('remember-pin-checkbox'); |
| + checkbox.checked = false; |
| var message = document.getElementById('pin-message'); |
| l10n.localizeElement(message, host.hostName); |
| remoting.setMode(remoting.AppMode.CLIENT_PIN_PROMPT); |