| Index: content/public/test/mock_download_item.cc
|
| diff --git a/content/public/test/mock_download_item.cc b/content/public/test/mock_download_item.cc
|
| index 562972a2658e7f1d73d4d496f9e13d5cf4cd28bb..7b19c3195401c978600d92a8765c49f77202cafb 100644
|
| --- a/content/public/test/mock_download_item.cc
|
| +++ b/content/public/test/mock_download_item.cc
|
| @@ -9,7 +9,8 @@ namespace content {
|
| MockDownloadItem::MockDownloadItem() {}
|
|
|
| MockDownloadItem::~MockDownloadItem() {
|
| - FOR_EACH_OBSERVER(Observer, observers_, OnDownloadDestroyed(this));
|
| + for (auto& observer : observers_)
|
| + observer.OnDownloadDestroyed(this);
|
| }
|
|
|
| void MockDownloadItem::AddObserver(Observer* observer) {
|
| @@ -21,15 +22,18 @@ void MockDownloadItem::RemoveObserver(Observer* observer) {
|
| }
|
|
|
| void MockDownloadItem::NotifyObserversDownloadOpened() {
|
| - FOR_EACH_OBSERVER(Observer, observers_, OnDownloadOpened(this));
|
| + for (auto& observer : observers_)
|
| + observer.OnDownloadOpened(this);
|
| }
|
|
|
| void MockDownloadItem::NotifyObserversDownloadRemoved() {
|
| - FOR_EACH_OBSERVER(Observer, observers_, OnDownloadRemoved(this));
|
| + for (auto& observer : observers_)
|
| + observer.OnDownloadRemoved(this);
|
| }
|
|
|
| void MockDownloadItem::NotifyObserversDownloadUpdated() {
|
| - FOR_EACH_OBSERVER(Observer, observers_, OnDownloadUpdated(this));
|
| + for (auto& observer : observers_)
|
| + observer.OnDownloadUpdated(this);
|
| }
|
|
|
| }
|
|
|