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

Unified Diff: components/pairing/fake_host_pairing_controller.cc

Issue 2444753002: Reduce usage of FOR_EACH_OBSERVER macro in components/ (Closed)
Patch Set: 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
Index: components/pairing/fake_host_pairing_controller.cc
diff --git a/components/pairing/fake_host_pairing_controller.cc b/components/pairing/fake_host_pairing_controller.cc
index 69aba2db6113bbe2bc455f419edaa4088161ed63..f0300f2dd5468cf47a91c98c11f1d1ddf2cd2941 100644
--- a/components/pairing/fake_host_pairing_controller.cc
+++ b/components/pairing/fake_host_pairing_controller.cc
@@ -80,7 +80,8 @@ void FakeHostPairingController::ChangeStage(Stage new_stage) {
if (current_stage_ == new_stage)
return;
current_stage_ = new_stage;
- FOR_EACH_OBSERVER(Observer, observers_, PairingStageChanged(new_stage));
+ for (Observer& observer : observers_)
+ observer.PairingStageChanged(new_stage);
}
void FakeHostPairingController::ChangeStageLater(Stage new_stage) {

Powered by Google App Engine
This is Rietveld 408576698