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

Issue 1161813006: Updated handling of GCD devices. (Closed)

Created:
5 years, 6 months ago by John Williams
Modified:
5 years, 6 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Updated handling of GCD devices. - GCD has begun enforcing stricter requirements for the |state| field of devices; this change restores compatibility. - The GCD device ID is now used as the primary key for hosts when GCD support is enabled. - Hosts registered in GCD now have a magic UUID stored in their tags so that Chromoting devices can be distinguished non-Chromoting devices stored in GCD. - The |displayName| field has been officially deprecated. With this change, the user-visible name of a host is stored in the |name| field, and the legacy host ID is stored as part of the |state| field. - HostController.getLocalHostId is now aware of the difference between GCD and legacy hosts. Depending on which field is stored in the local host config file, it returns the legacy ID |host_id|, or the GCD ID |gcd_device_id|. This logic will move to HostListApi in an upcoming patch. This CL contains some design decisions that may need to be re-visited before launch. In particular, there are fields on GCD that may be more appropriate to use than nonstandard fields in |state|: - The legacy ID, stored as |state.base._legacyId|, could be stored as the |serialNumber| field. The GCD docs, however, indicate that this field is not writable, and it seems wise to store the legacy ID in a field that can be removed once migration to GCD is complete. - Instead of a magic tag, it may make more sense to store a special value in |modelManfiest| or |modelManifesetId|. Unfortunately these fields are largely undocumented. - The host version, stored as |state.base._hostVersion|, could be stored as |state.base.firmwareVersion|. The implications of doing so are unclear. BUG=471928 Committed: https://crrev.com/5617fc4828bc1bf1729127964dbaffeb86a14024 Cr-Commit-Position: refs/heads/master@{#333589}

Patch Set 1 #

Patch Set 2 : for review; fixed broken host reg. algorithm #

Total comments: 14

Patch Set 3 : requested by reviewer #

Patch Set 4 : oops--ignore #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -539 lines) Patch
M remoting/remoting_webapp_files.gypi View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M remoting/webapp/crd/js/gcd_client.js View 2 chunks +4 lines, -8 lines 0 comments Download
A + remoting/webapp/crd/js/gcd_host_list_api.js View 1 2 3 5 chunks +70 lines, -35 lines 0 comments Download
M remoting/webapp/crd/js/host_controller.js View 1 2 6 chunks +39 lines, -30 lines 0 comments Download
M remoting/webapp/crd/js/host_controller_unittest.js View 1 3 chunks +17 lines, -11 lines 0 comments Download
M remoting/webapp/crd/js/host_list_api.js View 1 2 3 3 chunks +14 lines, -11 lines 0 comments Download
M remoting/webapp/crd/js/host_list_api_gcd_impl.js View 1 2 3 1 chunk +0 lines, -145 lines 0 comments Download
M remoting/webapp/crd/js/host_list_api_impl.js View 1 2 3 1 chunk +0 lines, -191 lines 0 comments Download
M remoting/webapp/crd/js/host_list_api_impl_unittest.js View 1 2 3 1 chunk +0 lines, -86 lines 0 comments Download
A + remoting/webapp/crd/js/legacy_host_list_api.js View 1 2 3 8 chunks +19 lines, -12 lines 0 comments Download
A + remoting/webapp/crd/js/legacy_host_list_api_unittest.js View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download
M remoting/webapp/crd/js/mock_host_list_api.js View 1 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
John Williams
5 years, 6 months ago (2015-06-06 00:14:12 UTC) #2
Jamie
I'll take a look at the code in a minute, but I wanted to comment ...
5 years, 6 months ago (2015-06-08 19:39:03 UTC) #3
Jamie
LGTM with nits. https://codereview.chromium.org/1161813006/diff/20001/remoting/webapp/crd/js/host_controller.js File remoting/webapp/crd/js/host_controller.js (right): https://codereview.chromium.org/1161813006/diff/20001/remoting/webapp/crd/js/host_controller.js#newcode169 remoting/webapp/crd/js/host_controller.js:169: var hostRegistered = false; I don't ...
5 years, 6 months ago (2015-06-08 21:44:34 UTC) #4
John Williams
https://codereview.chromium.org/1161813006/diff/20001/remoting/webapp/crd/js/host_controller.js File remoting/webapp/crd/js/host_controller.js (right): https://codereview.chromium.org/1161813006/diff/20001/remoting/webapp/crd/js/host_controller.js#newcode169 remoting/webapp/crd/js/host_controller.js:169: var hostRegistered = false; On 2015/06/08 21:44:34, Jamie wrote: ...
5 years, 6 months ago (2015-06-09 19:46:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161813006/40001
5 years, 6 months ago (2015-06-09 19:46:54 UTC) #8
Jamie
On 2015/06/09 19:46:54, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
5 years, 6 months ago (2015-06-09 20:22:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161813006/40001
5 years, 6 months ago (2015-06-09 21:27:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161813006/40001
5 years, 6 months ago (2015-06-09 21:54:22 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-09 22:16:51 UTC) #16
commit-bot: I haz the power
5 years, 6 months ago (2015-06-09 22:17:52 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5617fc4828bc1bf1729127964dbaffeb86a14024
Cr-Commit-Position: refs/heads/master@{#333589}

Powered by Google App Engine
This is Rietveld 408576698