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

Unified Diff: ash/common/shelf/shelf_background_animator.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 | « no previous file | ash/common/shelf/shelf_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_background_animator.cc
diff --git a/ash/common/shelf/shelf_background_animator.cc b/ash/common/shelf/shelf_background_animator.cc
index 7cbc31a02a0a2dbb8c96dee82d8d27e6896bcee1..ce9628f476f2125a5b53e54e370f1c105d34cc7c 100644
--- a/ash/common/shelf/shelf_background_animator.cc
+++ b/ash/common/shelf/shelf_background_animator.cc
@@ -88,14 +88,14 @@ void ShelfBackgroundAnimator::BackgroundAnimationEnded(
void ShelfBackgroundAnimator::OnAlphaChanged(BackgroundAnimator* animator,
int alpha) {
if (animator == opaque_background_animator_.get()) {
- FOR_EACH_OBSERVER(ShelfBackgroundAnimatorObserver, observers_,
- UpdateShelfOpaqueBackground(alpha));
+ for (auto& observer : observers_)
+ observer.UpdateShelfOpaqueBackground(alpha);
} else if (animator == asset_background_animator_.get()) {
- FOR_EACH_OBSERVER(ShelfBackgroundAnimatorObserver, observers_,
- UpdateShelfAssetBackground(alpha));
+ for (auto& observer : observers_)
+ observer.UpdateShelfAssetBackground(alpha);
} else if (animator == item_background_animator_.get()) {
- FOR_EACH_OBSERVER(ShelfBackgroundAnimatorObserver, observers_,
- UpdateShelfItemBackground(alpha));
+ for (auto& observer : observers_)
+ observer.UpdateShelfItemBackground(alpha);
} else {
NOTREACHED();
}
« no previous file with comments | « no previous file | ash/common/shelf/shelf_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698