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

Unified Diff: components/zoom/zoom_event_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/zoom/zoom_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/zoom/zoom_event_manager.cc
diff --git a/components/zoom/zoom_event_manager.cc b/components/zoom/zoom_event_manager.cc
index 5c328940cfed23afbe6229ac9bdde09b63618a2d..c1fd61cdd7315b9a55fa8dc24d51cc96f4469221 100644
--- a/components/zoom/zoom_event_manager.cc
+++ b/components/zoom/zoom_event_manager.cc
@@ -37,8 +37,8 @@ ZoomEventManager::AddZoomLevelChangedCallback(
}
void ZoomEventManager::OnDefaultZoomLevelChanged() {
- FOR_EACH_OBSERVER(ZoomEventManagerObserver, observers_,
- OnDefaultZoomLevelChanged());
+ for (auto& observer : observers_)
+ observer.OnDefaultZoomLevelChanged();
}
void ZoomEventManager::AddZoomEventManagerObserver(
« no previous file with comments | « components/zoom/zoom_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698