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

Unified Diff: ash/display/screen_orientation_controller_chromeos.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/display/display_manager.cc ('k') | ash/display/window_tree_host_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_orientation_controller_chromeos.cc
diff --git a/ash/display/screen_orientation_controller_chromeos.cc b/ash/display/screen_orientation_controller_chromeos.cc
index 228143675e4fdddd30cd832dd8ab4500a10ac1b3..df403ae66f19b6da8269e90dfaf31cfc4673e3a2 100644
--- a/ash/display/screen_orientation_controller_chromeos.cc
+++ b/ash/display/screen_orientation_controller_chromeos.cc
@@ -132,8 +132,8 @@ void ScreenOrientationController::SetRotationLocked(bool rotation_locked) {
rotation_locked_ = rotation_locked;
if (!rotation_locked_)
rotation_locked_orientation_ = blink::WebScreenOrientationLockAny;
- FOR_EACH_OBSERVER(Observer, observers_,
- OnRotationLockChanged(rotation_locked_));
+ for (auto& observer : observers_)
+ observer.OnRotationLockChanged(rotation_locked_);
if (!display::Display::HasInternalDisplay())
return;
base::AutoReset<bool> auto_ignore_display_configuration_updates(
« no previous file with comments | « ash/display/display_manager.cc ('k') | ash/display/window_tree_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698