diff options
author | sacomoto <sacomoto@chromium.org> | 2015-08-17 01:32:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-17 08:32:51 +0000 |
commit | 7b2aad40e9281f43c03260db7de8ddf58dfdf461 (patch) | |
tree | 8196fd4466e5884934156ea898f9f9d3131af3f6 | |
parent | 685ebec05c262ceff0f016aae4c8409ddeb7d515 (diff) | |
download | chromium_src-7b2aad40e9281f43c03260db7de8ddf58dfdf461.zip chromium_src-7b2aad40e9281f43c03260db7de8ddf58dfdf461.tar.gz chromium_src-7b2aad40e9281f43c03260db7de8ddf58dfdf461.tar.bz2 |
Fixing BluetoothLowEnergyConnectionFinder reconnection bug.
We should not remove the |adapter_| observer when |HandleDeviceUpdated|
is called. Otherwise, if the current connection fails, we don't try to
connect again, as no |DeviceChanged| notification is fired.
BUG=
Review URL: https://codereview.chromium.org/1298433002
Cr-Commit-Position: refs/heads/master@{#343642}
-rw-r--r-- | components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc index dabf64e..ef166cc 100644 --- a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc +++ b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.cc @@ -143,7 +143,6 @@ void BluetoothLowEnergyConnectionFinder::HandleDeviceUpdated( connection_->AddObserver(this); connection_->Connect(); - adapter_->RemoveObserver(this); StopDiscoverySession(); } } |