Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(790)

Unified Diff: device/bluetooth/bluetooth_task_manager_win.cc

Issue 2423793002: Remove usage of FOR_EACH_OBSERVER macro in device/ (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_adapter_win.cc ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « device/bluetooth/bluetooth_adapter_win.cc ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698