Index: content/browser/download/download_item_impl.cc |
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc |
index 99baf7e8c20019cdd3100f72573ce98b62ba2a75..f2494eb3fc479ad88b90c3c71d59901c646be2cd 100644 |
--- a/content/browser/download/download_item_impl.cc |
+++ b/content/browser/download/download_item_impl.cc |
@@ -246,7 +246,8 @@ DownloadItemImpl::~DownloadItemImpl() { |
// DownloadManager shutdown. |
DCHECK(!download_file_.get()); |
- FOR_EACH_OBSERVER(Observer, observers_, OnDownloadDestroyed(this)); |
+ for (auto& observer : observers_) |
+ observer.OnDownloadDestroyed(this); |
delegate_->AssertStateConsistent(this); |
delegate_->Detach(); |
} |
@@ -267,7 +268,8 @@ void DownloadItemImpl::UpdateObservers() { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
DVLOG(20) << __func__ << "()"; |
- FOR_EACH_OBSERVER(Observer, observers_, OnDownloadUpdated(this)); |
+ for (auto& observer : observers_) |
+ observer.OnDownloadUpdated(this); |
} |
void DownloadItemImpl::ValidateDangerousDownload() { |
@@ -428,7 +430,8 @@ void DownloadItemImpl::OpenDownload() { |
delegate_->CheckForFileRemoval(this); |
RecordOpen(GetEndTime(), !GetOpened()); |
opened_ = true; |
- FOR_EACH_OBSERVER(Observer, observers_, OnDownloadOpened(this)); |
+ for (auto& observer : observers_) |
+ observer.OnDownloadOpened(this); |
delegate_->OpenDownload(this); |
} |
@@ -974,7 +977,8 @@ void DownloadItemImpl::UpdateValidatorsOnResumption( |
} |
void DownloadItemImpl::NotifyRemoved() { |
- FOR_EACH_OBSERVER(Observer, observers_, OnDownloadRemoved(this)); |
+ for (auto& observer : observers_) |
+ observer.OnDownloadRemoved(this); |
} |
void DownloadItemImpl::OnDownloadedFileRemoved() { |