DescriptionMigrate chrome.bluetooth API backend to use device::BluetoothDiscoverySession.
Modified chrome.bluetooth API code to use the new discovery session API for
device discovery.
This CL is the same as r255262 which was reverted due to a memory leak. The leak
has been addressed in this patch.
BUG=346982, 349942
TEST=1. Run unit_tests and browser_tests with LSan.
2. Use multiple running extension instances with the bluetooth permission
and check for the following behavior:
- Only one session per extension. Calling chrome.bluetooth.stopDiscovery
from one running app should fail if that app never called
chrome.bluetooth.startDiscovery.
- An app's discovery sessions should get cleaned up if that app crashes
or unloads.
- Use bt_console and run "power off". This should cause all discovery
sessions that have been assigned to apps to get marked as inactive.
Verify by requesting a new discovery session from apps, which should
succeed.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255609
Patch Set 1 #Messages
Total messages: 10 (0 generated)
|