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

Unified Diff: ash/display/display_manager.cc

Issue 2421853003: Remove usage of FOR_EACH_OBSERVER macro in ash/ (Closed)
Patch Set: shell_observers 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 | « ash/common/keyboard/keyboard_ui.cc ('k') | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.cc
diff --git a/ash/display/display_manager.cc b/ash/display/display_manager.cc
index 1d08cacdcc84c1bb70287f520f9740d2b52281c1..50aabb503ef9db6108ef075ae3b3c4ee3f7b1c7e 100644
--- a/ash/display/display_manager.cc
+++ b/ash/display/display_manager.cc
@@ -1409,18 +1409,18 @@ void DisplayManager::RunPendingTasksForTest() {
void DisplayManager::NotifyMetricsChanged(const display::Display& display,
uint32_t metrics) {
- FOR_EACH_OBSERVER(display::DisplayObserver, observers_,
- OnDisplayMetricsChanged(display, metrics));
+ for (auto& observer : observers_)
+ observer.OnDisplayMetricsChanged(display, metrics);
}
void DisplayManager::NotifyDisplayAdded(const display::Display& display) {
- FOR_EACH_OBSERVER(display::DisplayObserver, observers_,
- OnDisplayAdded(display));
+ for (auto& observer : observers_)
+ observer.OnDisplayAdded(display);
}
void DisplayManager::NotifyDisplayRemoved(const display::Display& display) {
- FOR_EACH_OBSERVER(display::DisplayObserver, observers_,
- OnDisplayRemoved(display));
+ for (auto& observer : observers_)
+ observer.OnDisplayRemoved(display);
}
void DisplayManager::AddObserver(display::DisplayObserver* observer) {
« no previous file with comments | « ash/common/keyboard/keyboard_ui.cc ('k') | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698