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

Unified Diff: components/undo/undo_manager.cc

Issue 2430823002: Reduce usage of FOR_EACH_OBSERVER macro in components/ (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 | « components/syncable_prefs/pref_service_syncable.cc ('k') | components/update_client/update_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/undo/undo_manager.cc
diff --git a/components/undo/undo_manager.cc b/components/undo/undo_manager.cc
index 59cb8e081f09147cfa6a39c88e1fe5122fed2e4c..6829e5215908c3ef29f6ae35b40a4a1cce9aee55 100644
--- a/components/undo/undo_manager.cc
+++ b/components/undo/undo_manager.cc
@@ -203,8 +203,8 @@ void UndoManager::Undo(bool* performing_indicator,
}
void UndoManager::NotifyOnUndoManagerStateChange() {
- FOR_EACH_OBSERVER(
- UndoManagerObserver, observers_, OnUndoManagerStateChange());
+ for (auto& observer : observers_)
+ observer.OnUndoManagerStateChange();
}
void UndoManager::AddUndoGroup(UndoGroup* new_undo_group) {
« no previous file with comments | « components/syncable_prefs/pref_service_syncable.cc ('k') | components/update_client/update_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698