diff options
author | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-05 04:03:00 +0000 |
---|---|---|
committer | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-05 04:03:00 +0000 |
commit | 7fc124ed2a25eef98d225192dc06dd4885b1fd7b (patch) | |
tree | 422988973c0094306ccc22b0248d3bc65213347e /remoting | |
parent | a9723e1011256473f547842cecb3657d655d8b9a (diff) | |
download | chromium_src-7fc124ed2a25eef98d225192dc06dd4885b1fd7b.zip chromium_src-7fc124ed2a25eef98d225192dc06dd4885b1fd7b.tar.gz chromium_src-7fc124ed2a25eef98d225192dc06dd4885b1fd7b.tar.bz2 |
Don't show newly-enabled hosts as out-of-date.
When enabling remote connections for the local system, the
host was being shown as out-of-date, because the dummy host
entry (created for the new host pending a heartbeat) didn't
have any version number set. This CL sets a version that is
new enough not to trigger the warning.
Review URL: https://chromiumcodereview.appspot.com/12388097
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/webapp/host_list.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/remoting/webapp/host_list.js b/remoting/webapp/host_list.js index f5daa24..a372d25 100644 --- a/remoting/webapp/host_list.js +++ b/remoting/webapp/host_list.js @@ -422,6 +422,9 @@ remoting.HostList.prototype.onLocalHostStarted = function( // and we hope that the directory will have been updated by that point. var localHost = new remoting.Host(); localHost.hostName = hostName; + // Provide a version number to avoid warning about this dummy host being + // out-of-date. + localHost.hostVersion = String(this.webappMajorVersion_) + ".x" localHost.hostId = hostId; localHost.publicKey = publicKey; localHost.status = 'ONLINE'; |