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

Unified Diff: chrome/browser/sync_file_system/task_logger.cc

Issue 2425553002: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/sync_file_system (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 | « chrome/browser/sync_file_system/sync_file_system_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/task_logger.cc
diff --git a/chrome/browser/sync_file_system/task_logger.cc b/chrome/browser/sync_file_system/task_logger.cc
index dfe7753a94bdff5b5f528851e84e35d9688dec52..661c35958c3c729062e86deec4e6486ec50d2cee 100644
--- a/chrome/browser/sync_file_system/task_logger.cc
+++ b/chrome/browser/sync_file_system/task_logger.cc
@@ -46,8 +46,8 @@ void TaskLogger::RecordLog(std::unique_ptr<TaskLog> log) {
log_history_.push_back(std::move(log));
- FOR_EACH_OBSERVER(Observer, observers_,
- OnLogRecorded(*log_history_.back()));
+ for (auto& observer : observers_)
+ observer.OnLogRecorded(*log_history_.back());
}
void TaskLogger::ClearLog() {
« no previous file with comments | « chrome/browser/sync_file_system/sync_file_system_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698