| 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 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** @suppress {duplicate} */ | 7 /** @suppress {duplicate} */ |
| 8 var remoting = remoting || {}; | 8 var remoting = remoting || {}; |
| 9 | 9 |
| 10 /** @type {remoting.HostSession} */ remoting.hostSession = null; | 10 /** @type {remoting.HostSession} */ remoting.hostSession = null; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 /** | 178 /** |
| 179 * Returns whether Host mode is supported on this platform. | 179 * Returns whether Host mode is supported on this platform. |
| 180 * | 180 * |
| 181 * @return {boolean} True if Host mode is supported. | 181 * @return {boolean} True if Host mode is supported. |
| 182 */ | 182 */ |
| 183 function isHostModeSupported_() { | 183 function isHostModeSupported_() { |
| 184 // Currently, sharing on Chromebooks is not supported. | 184 // Currently, sharing on Chromebooks is not supported. |
| 185 return !navigator.userAgent.match(/\bCrOS\b/); | 185 return !navigator.userAgent.match(/\bCrOS\b/); |
| 186 } | 186 } |
| OLD | NEW |