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

Unified Diff: components/proximity_auth/ble/proximity_auth_ble_system.cc

Issue 1113793002: Fix discovery of Smart Lock service in Proximity Auth over Blutooth Low Energy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eu_4
Patch Set: Nit Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/ble/proximity_auth_ble_system.cc
diff --git a/components/proximity_auth/ble/proximity_auth_ble_system.cc b/components/proximity_auth/ble/proximity_auth_ble_system.cc
index bf4c2c743c4fbadf473877284815b68d3d1afc3b..673792d82ed51705a3fa6e6250a43bff40c46039 100644
--- a/components/proximity_auth/ble/proximity_auth_ble_system.cc
+++ b/components/proximity_auth/ble/proximity_auth_ble_system.cc
@@ -70,6 +70,11 @@ void ProximityAuthBleSystem::OnFocusedUserChanged(const std::string& user_id) {
void ProximityAuthBleSystem::OnConnectionFound(
scoped_ptr<device::BluetoothGattConnection> connection) {
+ VLOG(1) << "Connection found. Unlock.";
+
+ // Close the connection as it it no longer needed.
+ connection_finder_->CloseConnection(connection.Pass());
+
// Unlock the screen when a connection is found.
//
// Note that this magically unlocks Chrome (no user interaction is needed).
« no previous file with comments | « components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698