Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: remoting/webapp/base/js/platform.js

Issue 695363002: Remote assistance on Chrome OS Part VI - Enable It2me on ChromeOS in the webapp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add to do statement Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | remoting/webapp/crd/js/client_session.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 /** 10 /**
(...skipping 12 matching lines...) Expand all
23 * Returns Chrome major version. 23 * Returns Chrome major version.
24 * @return {number} 24 * @return {number}
25 */ 25 */
26 remoting.getChromeMajorVersion = function() { 26 remoting.getChromeMajorVersion = function() {
27 var match = new RegExp('Chrome/([0-9]+)\.').exec(navigator.userAgent); 27 var match = new RegExp('Chrome/([0-9]+)\.').exec(navigator.userAgent);
28 if (match && (match.length >= 2)) { 28 if (match && (match.length >= 2)) {
29 return parseInt(match[1], 10); 29 return parseInt(match[1], 10);
30 } 30 }
31 return 0; 31 return 0;
32 }; 32 };
33
34 /**
35 * Returns whether the app is running on ChromeOS.
36 *
37 * @return {boolean} True if the app is running on ChromeOS.
38 */
39 remoting.runningOnChromeOS = function() {
40 return !!navigator.userAgent.match(/\bCrOS\b/);
41 }
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/crd/js/client_session.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698