[CrOS MultiDevice] Fix two bugs related to removing the host device.
(1) HostVerifierImpl::IsHostVerified() returned true if the device had
previously been verified but was pending removal. If a device is
pending removal, the user has explicitly requested that it be
removed as the host device, so it should not be considered verified.
(2) RemoteDeviceCache::SetRemoteDevices() skipped overwriting device
metadata if that data was not newer than the previously-stored data.
However, there is currently a bug on the CryptAuth back-end which
does not update the device metadata update time when a feature has
been changed from supported to enabled or vice versa. Thus, this
check has been temporarily removed until the back-end bug has been
fixed.
Bug: 870069, 824568
Change-Id: Ie748e5d662a9ea00cf1b5e6a42fc8354c986d61e
Reviewed-on: https://chromium-review.googlesource.com/1192417Reviewed-by:
James Hawkins <jhawkins@chromium.org>
Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#586767}
Showing
Please register or sign in to comment