| Index: components/history/core/browser/history_backend.cc
|
| diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
|
| index 50383baf27d5b2e8e65f2c573ae4e6787671ff30..410f2588dfef829ba84db98331eae5dc0601d450 100644
|
| --- a/components/history/core/browser/history_backend.cc
|
| +++ b/components/history/core/browser/history_backend.cc
|
| @@ -2492,16 +2492,16 @@ void HistoryBackend::NotifyURLVisited(ui::PageTransition transition,
|
| const URLRow& row,
|
| const RedirectList& redirects,
|
| base::Time visit_time) {
|
| - FOR_EACH_OBSERVER(HistoryBackendObserver, observers_,
|
| - OnURLVisited(this, transition, row, redirects, visit_time));
|
| + for (HistoryBackendObserver& observer : observers_)
|
| + observer.OnURLVisited(this, transition, row, redirects, visit_time);
|
|
|
| if (delegate_)
|
| delegate_->NotifyURLVisited(transition, row, redirects, visit_time);
|
| }
|
|
|
| void HistoryBackend::NotifyURLsModified(const URLRows& rows) {
|
| - FOR_EACH_OBSERVER(HistoryBackendObserver, observers_,
|
| - OnURLsModified(this, rows));
|
| + for (HistoryBackendObserver& observer : observers_)
|
| + observer.OnURLsModified(this, rows);
|
|
|
| if (delegate_)
|
| delegate_->NotifyURLsModified(rows);
|
| @@ -2512,9 +2512,10 @@ void HistoryBackend::NotifyURLsDeleted(bool all_history,
|
| const URLRows& rows,
|
| const std::set<GURL>& favicon_urls) {
|
| URLRows copied_rows(rows);
|
| - FOR_EACH_OBSERVER(
|
| - HistoryBackendObserver, observers_,
|
| - OnURLsDeleted(this, all_history, expired, copied_rows, favicon_urls));
|
| + for (HistoryBackendObserver& observer : observers_) {
|
| + observer.OnURLsDeleted(this, all_history, expired, copied_rows,
|
| + favicon_urls);
|
| + }
|
|
|
| if (delegate_)
|
| delegate_->NotifyURLsDeleted(all_history, expired, copied_rows,
|
|
|