bluetooth: Refactor BluetoothDiscoverySession::Stop to always call its callbacks
commitfd75f67a3d466c4d45e3d9e95a8ef4b961eb133b
authorortuno <ortuno@chromium.org>
Tue, 5 May 2015 04:30:10 +0000 (4 21:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 5 May 2015 04:30:40 +0000 (5 04:30 +0000)
treed2573b727b90af13b5dd875ee217224ee154e4a6
parent8cfb70cf3c179cc69e060a5e215d8eb9707b0f85
bluetooth: Refactor BluetoothDiscoverySession::Stop to always call its callbacks

This patch fixes an bug where Stop's callbacks wouldn't get called if the
BluetoothDiscoverySession got destroyed before Stop finished.

BUG=484502

Review URL: https://codereview.chromium.org/1125483004

Cr-Commit-Position: refs/heads/master@{#328274}
device/bluetooth/bluetooth_chromeos_unittest.cc
device/bluetooth/bluetooth_discovery_session.cc
device/bluetooth/bluetooth_discovery_session.h