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

Unified Diff: ash/common/shelf/shelf_button.cc

Issue 2414303002: Remove usage of FOR_EACH_OBSERVER macro in ash/common (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
« no previous file with comments | « ash/common/shelf/shelf_background_animator.cc ('k') | ash/common/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_button.cc
diff --git a/ash/common/shelf/shelf_button.cc b/ash/common/shelf/shelf_button.cc
index cb23ecd417ad17a9f56475476973c142ffabbbc2..ef00082ce3f6de53770d4df141be23cdd5b58971 100644
--- a/ash/common/shelf/shelf_button.cc
+++ b/ash/common/shelf/shelf_button.cc
@@ -121,7 +121,8 @@ class ShelfButtonAnimation : public gfx::AnimationDelegate {
return;
if (!animation_.is_animating())
return;
- FOR_EACH_OBSERVER(Observer, observers_, AnimationProgressed());
+ for (auto& observer : observers_)
+ observer.AnimationProgressed();
}
gfx::ThrobAnimation animation_;
« no previous file with comments | « ash/common/shelf/shelf_background_animator.cc ('k') | ash/common/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698