| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Functions related to the 'client screen' for Chromoting. | 7 * Functions related to the 'client screen' for Chromoting. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 remoting.hostJid, remoting.hostPublicKey, | 460 remoting.hostJid, remoting.hostPublicKey, |
| 461 pin, /** @type {string} */ (remoting.oauth2.getCachedEmail()), | 461 pin, /** @type {string} */ (remoting.oauth2.getCachedEmail()), |
| 462 onClientStateChange_); | 462 onClientStateChange_); |
| 463 remoting.clientSession.createPluginAndConnect( | 463 remoting.clientSession.createPluginAndConnect( |
| 464 document.getElementById('session-mode'), | 464 document.getElementById('session-mode'), |
| 465 token); | 465 token); |
| 466 } else { | 466 } else { |
| 467 showConnectError_(remoting.Error.AUTHENTICATION_FAILED); | 467 showConnectError_(remoting.Error.AUTHENTICATION_FAILED); |
| 468 } | 468 } |
| 469 } | 469 } |
| OLD | NEW |