DescriptionDelayed adding BluetoothEventRouter as BluetoothAdapter observer until when the
bluetooth API calls and events are actually made.
The background of this change is related to the windows implementation of BluetoothAdapter (https://chromiumcodereview.appspot.com/11345037/) where we decided to use polling approach to detect the bluetooth adapter state. In order to limit the polling, we'd like to poll when there are observers to bluetooth adapter, and that's why we'd like to delay registering observers until it's necessary.
BUG=135470
Patch Set 1 #Patch Set 2 : Fixed negating mistake #Patch Set 3 : Added bluetooth_event_router_unittest. #Patch Set 4 : Fixed BluetoothApiTest #
Total comments: 12
Patch Set 5 : Removed AddObserver from GetMutableAdapter. #Patch Set 6 : Fixed BluetoothApiTest. #Messages
Total messages: 7 (0 generated)
|