Description was changed from ========== [EasyUnlock] Update BluetoothLowEnergyConnectionFinder to look for EIDs. This CL cleans ...
3 years, 8 months ago
(2017-04-24 23:42:50 UTC)
#1
Description was changed from
==========
[EasyUnlock] Update BluetoothLowEnergyConnectionFinder to look for EIDs.
This CL cleans up unnecessary BLE code from our old protocol, and updates the
connection finder to check for the EIDs advertised by the phone.
==========
to
==========
[EasyUnlock] Update BluetoothLowEnergyConnectionFinder to look for EIDs.
Note that this CL copies this class to the proximity_auth/ directory. The
existing BLE directory will be deleted in the future, as it is obsolete.
==========
3 years, 8 months ago
(2017-04-24 23:50:43 UTC)
#3
sacomoto
https://codereview.chromium.org/2841743003/diff/40001/components/proximity_auth/bluetooth_low_energy_connection_finder.cc File components/proximity_auth/bluetooth_low_energy_connection_finder.cc (right): https://codereview.chromium.org/2841743003/diff/40001/components/proximity_auth/bluetooth_low_energy_connection_finder.cc#newcode92 components/proximity_auth/bluetooth_low_energy_connection_finder.cc:92: return; I think this is a bit awkward. This ...
3 years, 8 months ago
(2017-04-25 09:45:00 UTC)
#4
https://codereview.chromium.org/2841743003/diff/40001/components/proximity_auth/bluetooth_low_energy_connection_finder.cc File components/proximity_auth/bluetooth_low_energy_connection_finder.cc (right): https://codereview.chromium.org/2841743003/diff/40001/components/proximity_auth/bluetooth_low_energy_connection_finder.cc#newcode92 components/proximity_auth/bluetooth_low_energy_connection_finder.cc:92: return; On 2017/04/25 09:45:00, sacomoto wrote: > I think ...
3 years, 8 months ago
(2017-04-25 20:37:47 UTC)
#5
https://codereview.chromium.org/2841743003/diff/40001/components/proximity_au...
File components/proximity_auth/bluetooth_low_energy_connection_finder.cc
(right):
https://codereview.chromium.org/2841743003/diff/40001/components/proximity_au...
components/proximity_auth/bluetooth_low_energy_connection_finder.cc:92: return;
On 2017/04/25 09:45:00, sacomoto wrote:
> I think this is a bit awkward. This method is a no-op if we fail to fetch the
> seeds, and the upper layers are not notified.
>
> I see two ways to fix this. Either pass a seed array directly (and require it
to
> be non-empty), or have a (persistent) failure callback in this method.
>
I changed the interface to accept the BeaconSeeds directly, but there is no real
change in behaviour, because RemoteDeviceLifeCycle isn't designed to deal with
invalid device data.
There's also a few other places in this class where we just idle if something
fails. I think this behaviour is okay, as these are very exceptional cases.
https://codereview.chromium.org/2841743003/diff/40001/components/proximity_au...
components/proximity_auth/bluetooth_low_energy_connection_finder.cc:94:
nearest_eids_ = eid_generator_->GenerateNearestEids(beacon_seeds);
On 2017/04/25 09:45:00, sacomoto wrote:
> Shouldn't we recompute this periodically? What if the screen is locked for
more
> than 45min?
This should be very unlikely as the Chromebook will suspend after some minutes
of inactivity.
However, I changed this class to recompute the EIDs for each device update. It's
less efficient, but it's not really something we need to optimize for.
sacomoto
lgtm
3 years, 8 months ago
(2017-04-25 20:48:23 UTC)
#6
lgtm
Tim Song
The CQ bit was checked by tengs@chromium.org
3 years, 8 months ago
(2017-04-25 21:43:51 UTC)
#7
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/438464)
3 years, 8 months ago
(2017-04-25 21:51:07 UTC)
#10
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/404477) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago
(2017-04-25 22:22:30 UTC)
#15
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/354813) linux_chromium_asan_rel_ng on ...
3 years, 8 months ago
(2017-04-25 22:53:40 UTC)
#19
CQ is committing da patch. Bot data: {"patchset_id": 120001, "attempt_start_ts": 1493168242436430, "parent_rev": "cb7ad92fe2a8bd9561264169b6765c75e82eea23", "commit_rev": "4e46b4e06866f12f15eb9f436b273801b20e7422"}
3 years, 8 months ago
(2017-04-26 01:04:01 UTC)
#27
CQ is committing da patch.
Bot data: {"patchset_id": 120001, "attempt_start_ts": 1493168242436430,
"parent_rev": "cb7ad92fe2a8bd9561264169b6765c75e82eea23", "commit_rev":
"4e46b4e06866f12f15eb9f436b273801b20e7422"}
commit-bot: I haz the power
Description was changed from ========== [EasyUnlock] Update BluetoothLowEnergyConnectionFinder to look for EIDs. Note that this ...
3 years, 8 months ago
(2017-04-26 01:04:35 UTC)
#28
Message was sent while issue was closed.
Description was changed from
==========
[EasyUnlock] Update BluetoothLowEnergyConnectionFinder to look for EIDs.
Note that this CL copies this class to the proximity_auth/ directory. The
existing BLE directory will be deleted in the future, as it is obsolete.
==========
to
==========
[EasyUnlock] Update BluetoothLowEnergyConnectionFinder to look for EIDs.
Note that this CL copies this class to the proximity_auth/ directory. The
existing BLE directory will be deleted in the future, as it is obsolete.
Review-Url: https://codereview.chromium.org/2841743003
Cr-Commit-Position: refs/heads/master@{#467190}
Committed:
https://chromium.googlesource.com/chromium/src/+/4e46b4e06866f12f15eb9f436b27...
==========
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/4e46b4e06866f12f15eb9f436b273801b20e7422
3 years, 8 months ago
(2017-04-26 01:04:41 UTC)
#29
Issue 2841743003: [EasyUnlock] Update BluetoothLowEnergyConnectionFinder to look for EIDs.
(Closed)
Created 3 years, 8 months ago by Tim Song
Modified 3 years, 8 months ago
Reviewers: sacomoto
Base URL:
Comments: 4