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

Unified Diff: ui/base/user_activity/user_activity_detector.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/base/ime/mock_input_method.cc ('k') | ui/base/win/osk_display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/user_activity/user_activity_detector.cc
diff --git a/ui/base/user_activity/user_activity_detector.cc b/ui/base/user_activity/user_activity_detector.cc
index 29dec4e8c988586f96b209df60e13877817ac4f4..bfda1cfdc91a96587501abf2cd021daaa48b3b24 100644
--- a/ui/base/user_activity/user_activity_detector.cc
+++ b/ui/base/user_activity/user_activity_detector.cc
@@ -123,7 +123,8 @@ void UserActivityDetector::HandleActivity(const ui::Event* event) {
kNotifyIntervalMs) {
if (VLOG_IS_ON(1))
VLOG(1) << "Reporting user activity: " << GetEventDebugString(event);
- FOR_EACH_OBSERVER(UserActivityObserver, observers_, OnUserActivity(event));
+ for (UserActivityObserver& observer : observers_)
+ observer.OnUserActivity(event);
last_observer_notification_time_ = now;
}
}
« no previous file with comments | « ui/base/ime/mock_input_method.cc ('k') | ui/base/win/osk_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698