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

Side by Side Diff: remoting/webapp/crd/js/host.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 years, 10 months 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
OLDNEW
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 * The deserialized form of the chromoting host as returned by Apiary. 7 * The deserialized form of the chromoting host as returned by Apiary.
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
(...skipping 12 matching lines...) Expand all
23 /** @type {string} */ 23 /** @type {string} */
24 this.hostId = ''; 24 this.hostId = '';
25 /** @type {string} */ 25 /** @type {string} */
26 this.status = ''; 26 this.status = '';
27 /** @type {string} */ 27 /** @type {string} */
28 this.jabberId = ''; 28 this.jabberId = '';
29 /** @type {string} */ 29 /** @type {string} */
30 this.publicKey = ''; 30 this.publicKey = '';
31 /** @type {string} */ 31 /** @type {string} */
32 this.hostVersion = ''; 32 this.hostVersion = '';
33 /** @type {Array.<string>} */ 33 /** @type {Array<string>} */
34 this.tokenUrlPatterns = []; 34 this.tokenUrlPatterns = [];
35 /** @type {string} */ 35 /** @type {string} */
36 this.updatedTime = ''; 36 this.updatedTime = '';
37 /** @type {string} */ 37 /** @type {string} */
38 this.hostOfflineReason = ''; 38 this.hostOfflineReason = '';
39 }; 39 };
40 40
41 /** 41 /**
42 * Determine whether a host needs to be manually updated. This is the case if 42 * Determine whether a host needs to be manually updated. This is the case if
43 * the host's major version number is more than 1 lower than that of the web- 43 * the host's major version number is more than 1 lower than that of the web-
(...skipping 11 matching lines...) Expand all
55 return false; 55 return false;
56 } 56 }
57 var hostMajorVersion = parseInt(host.hostVersion, 10); 57 var hostMajorVersion = parseInt(host.hostVersion, 10);
58 if (isNaN(hostMajorVersion)) { 58 if (isNaN(hostMajorVersion)) {
59 // Host versions 26 and higher include the version number in heartbeats, 59 // Host versions 26 and higher include the version number in heartbeats,
60 // so if it's missing then the host is at most version 25. 60 // so if it's missing then the host is at most version 25.
61 hostMajorVersion = 25; 61 hostMajorVersion = 25;
62 } 62 }
63 return (parseInt(webappVersion, 10) - hostMajorVersion) > 1; 63 return (parseInt(webappVersion, 10) - hostMajorVersion) > 1;
64 }; 64 };
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/fallback_signal_strategy.js ('k') | remoting/webapp/crd/js/host_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698