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

Unified Diff: chrome/browser/extensions/api/braille_display_private/braille_controller_brlapi.cc

Issue 2422963002: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/extensions (Closed)
Patch Set: extensions 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 | « no previous file | chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/braille_display_private/braille_controller_brlapi.cc
diff --git a/chrome/browser/extensions/api/braille_display_private/braille_controller_brlapi.cc b/chrome/browser/extensions/api/braille_display_private/braille_controller_brlapi.cc
index 78e84507d677a81fe3bf0b41b9dcd1ae20590738..cf94cf917d4db6084bf54d83c7511b4e51478811 100644
--- a/chrome/browser/extensions/api/braille_display_private/braille_controller_brlapi.cc
+++ b/chrome/browser/extensions/api/braille_display_private/braille_controller_brlapi.cc
@@ -303,7 +303,8 @@ void BrailleControllerImpl::DispatchKeyEvent(std::unique_ptr<KeyEvent> event) {
return;
}
VLOG(1) << "Dispatching key event: " << *event->ToValue();
- FOR_EACH_OBSERVER(BrailleObserver, observers_, OnBrailleKeyEvent(*event));
+ for (auto& observer : observers_)
+ observer.OnBrailleKeyEvent(*event);
}
void BrailleControllerImpl::DispatchOnDisplayStateChanged(
@@ -318,8 +319,8 @@ void BrailleControllerImpl::DispatchOnDisplayStateChanged(
}
return;
}
- FOR_EACH_OBSERVER(BrailleObserver, observers_,
- OnBrailleDisplayStateChanged(*new_state));
+ for (auto& observer : observers_)
+ observer.OnBrailleDisplayStateChanged(*new_state);
}
} // namespace braille_display_private
« no previous file with comments | « no previous file | chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698