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

Unified Diff: ui/snapshot/screenshot_grabber.cc

Issue 2422073002: Reduce FOR_EACH_OBSERVER usage in ui/ (Closed)
Patch Set: remove space 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 | « ui/ozone/platform/drm/mus_thread_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/screenshot_grabber.cc
diff --git a/ui/snapshot/screenshot_grabber.cc b/ui/snapshot/screenshot_grabber.cc
index ebccaaec342ee6d821c737c3ba8f6dba3412dbec..7b35748a699bc48e26f954197e07ba9ce8095eab 100644
--- a/ui/snapshot/screenshot_grabber.cc
+++ b/ui/snapshot/screenshot_grabber.cc
@@ -187,8 +187,8 @@ void ScreenshotGrabber::NotifyScreenshotCompleted(
#if defined(USE_AURA)
cursor_hider_.reset();
#endif
- FOR_EACH_OBSERVER(ScreenshotGrabberObserver, observers_,
- OnScreenshotCompleted(screenshot_result, screenshot_path));
+ for (ScreenshotGrabberObserver& observer : observers_)
+ observer.OnScreenshotCompleted(screenshot_result, screenshot_path);
}
void ScreenshotGrabber::AddObserver(ScreenshotGrabberObserver* observer) {
« no previous file with comments | « ui/ozone/platform/drm/mus_thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698