| 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();
|
| }
|
|
|