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

Unified Diff: ui/compositor/test/in_process_context_factory.cc

Issue 2417613003: Remove usage of FOR_EACH_OBSERVER macro in ui/compositor/. (Closed)
Patch Set: Add missing entries. 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/compositor/layer_animation_sequence.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/in_process_context_factory.cc
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc
index 77c83c01559b81f83ebea01a44c5ad0452ca769e..4fb3dc70d6603bb3377411bf3685921d7b39ffac 100644
--- a/ui/compositor/test/in_process_context_factory.cc
+++ b/ui/compositor/test/in_process_context_factory.cc
@@ -131,7 +131,8 @@ InProcessContextFactory::~InProcessContextFactory() {
}
void InProcessContextFactory::SendOnLostResources() {
- FOR_EACH_OBSERVER(ContextFactoryObserver, observer_list_, OnLostResources());
+ for (auto& observer : observer_list_)
+ observer.OnLostResources();
}
void InProcessContextFactory::CreateCompositorFrameSink(
« no previous file with comments | « ui/compositor/layer_animation_sequence.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698