| Index: device/bluetooth/bluetooth_task_manager_win.cc
|
| diff --git a/device/bluetooth/bluetooth_task_manager_win.cc b/device/bluetooth/bluetooth_task_manager_win.cc
|
| index df0b0fcccb9432adc1300127691dd0b99b0e8ddc..4573fb9ffbd65237437a8040b90e87c1b6d10eb0 100644
|
| --- a/device/bluetooth/bluetooth_task_manager_win.cc
|
| +++ b/device/bluetooth/bluetooth_task_manager_win.cc
|
| @@ -361,27 +361,27 @@ void BluetoothTaskManagerWin::LogPollingError(const char* message,
|
|
|
| void BluetoothTaskManagerWin::OnAdapterStateChanged(const AdapterState* state) {
|
| DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
|
| - FOR_EACH_OBSERVER(BluetoothTaskManagerWin::Observer, observers_,
|
| - AdapterStateChanged(*state));
|
| + for (auto& observer : observers_)
|
| + observer.AdapterStateChanged(*state);
|
| }
|
|
|
| void BluetoothTaskManagerWin::OnDiscoveryStarted(bool success) {
|
| DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
|
| - FOR_EACH_OBSERVER(BluetoothTaskManagerWin::Observer, observers_,
|
| - DiscoveryStarted(success));
|
| + for (auto& observer : observers_)
|
| + observer.DiscoveryStarted(success);
|
| }
|
|
|
| void BluetoothTaskManagerWin::OnDiscoveryStopped() {
|
| DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
|
| - FOR_EACH_OBSERVER(BluetoothTaskManagerWin::Observer, observers_,
|
| - DiscoveryStopped());
|
| + for (auto& observer : observers_)
|
| + observer.DiscoveryStopped();
|
| }
|
|
|
| void BluetoothTaskManagerWin::OnDevicesPolled(
|
| const ScopedVector<DeviceState>* devices) {
|
| DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
|
| - FOR_EACH_OBSERVER(
|
| - BluetoothTaskManagerWin::Observer, observers_, DevicesPolled(*devices));
|
| + for (auto& observer : observers_)
|
| + observer.DevicesPolled(*devices);
|
| }
|
|
|
| void BluetoothTaskManagerWin::PollAdapter() {
|
|
|