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

Issue 1113793002: Fix discovery of Smart Lock service in Proximity Auth over Blutooth Low Energy. (Closed)

Created:
5 years, 7 months ago by msarda
Modified:
5 years, 7 months ago
Reviewers:
droger, sacomoto
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@eu_4
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix discovery of Smart Lock service in Proximity Auth over Blutooth Low Energy. This CL adds observers Bluetooth device changed and device removed notifications. Each time a device changes, it checks if the device advertises the Smart Lock service UUID. If so and if there is no pending connection to that device, then it tries to connect to it. This CL also forgets the Bluetooth device that advertises Smart Lock. This ensures that the device is disconnected and its entry removed fron the Bluetooth device controller. Note that this strategy is fine as Bluetooth Low Energy device that advertises Smart Lock service UUID is only used by the Proximity Auth component. TEST=On Chrome OS, turn on Smart Lock over Bluetooth Low Energy in settings. Install a Smart Lock app on a BLE device. On Chrome OS, sign in and then lock the screen. Start the Smart Lock app on a BLE device and observe that Chrome OS magically unlocks. BUG=479670 Committed: https://crrev.com/18d21e1eccf868ec06d59e65a93314148260e749 Cr-Commit-Position: refs/heads/master@{#327495}

Patch Set 1 #

Patch Set 2 : Nit #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : Add DCHECKs #

Total comments: 7

Patch Set 5 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -20 lines) Patch
M components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h View 1 2 3 4 5 chunks +15 lines, -2 lines 0 comments Download
M components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc View 1 2 3 4 8 chunks +78 lines, -18 lines 0 comments Download
M components/proximity_auth/ble/proximity_auth_ble_system.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
msarda
Please take a look.
5 years, 7 months ago (2015-04-29 13:01:03 UTC) #2
sacomoto
LGTM. https://codereview.chromium.org/1113793002/diff/20001/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc File components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc (right): https://codereview.chromium.org/1113793002/diff/20001/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc#newcode75 components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc:75: BluetoothDevice* device) { Nit: please put a DCHECK(device) ...
5 years, 7 months ago (2015-04-29 13:32:43 UTC) #3
msarda
https://codereview.chromium.org/1113793002/diff/20001/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc File components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc (right): https://codereview.chromium.org/1113793002/diff/20001/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc#newcode75 components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc:75: BluetoothDevice* device) { On 2015/04/29 13:32:43, sacomoto wrote: > ...
5 years, 7 months ago (2015-04-29 14:11:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113793002/60001
5 years, 7 months ago (2015-04-29 14:12:16 UTC) #7
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 7 months ago (2015-04-29 14:12:17 UTC) #9
droger
lgtm https://codereview.chromium.org/1113793002/diff/60001/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc File components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc (right): https://codereview.chromium.org/1113793002/diff/60001/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc#newcode26 components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc:26: void EmptyErrorCallback() { Nit: you can use DoNothing() ...
5 years, 7 months ago (2015-04-29 14:41:03 UTC) #11
droger
https://codereview.chromium.org/1113793002/diff/60001/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc File components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc (right): https://codereview.chromium.org/1113793002/diff/60001/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc#newcode70 components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc:70: VLOG(1) << "Device added: " << device->GetAddress(); On 2015/04/29 ...
5 years, 7 months ago (2015-04-29 14:42:01 UTC) #12
msarda
https://codereview.chromium.org/1113793002/diff/60001/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc File components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc (right): https://codereview.chromium.org/1113793002/diff/60001/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc#newcode26 components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc:26: void EmptyErrorCallback() { On 2015/04/29 14:41:03, droger wrote: > ...
5 years, 7 months ago (2015-04-29 14:45:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113793002/80001
5 years, 7 months ago (2015-04-29 14:45:35 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-04-29 15:38:52 UTC) #17
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 15:40:30 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/18d21e1eccf868ec06d59e65a93314148260e749
Cr-Commit-Position: refs/heads/master@{#327495}

Powered by Google App Engine
This is Rietveld 408576698