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

Unified Diff: ppapi/proxy/host_dispatcher.cc

Issue 2413313005: Reduce FOR_EACH_OBSERVER usage in ppapi (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/host_dispatcher.cc
diff --git a/ppapi/proxy/host_dispatcher.cc b/ppapi/proxy/host_dispatcher.cc
index 5d61429fa4b0f3f6d75b033401af8dbaae7637cc..a5fdfcaf1c946872329b3ccf3243c7aec3d06983 100644
--- a/ppapi/proxy/host_dispatcher.cc
+++ b/ppapi/proxy/host_dispatcher.cc
@@ -156,11 +156,11 @@ bool HostDispatcher::Send(IPC::Message* msg) {
// destroys the plugin module and in turn the dispatcher.
ScopedModuleReference scoped_ref(this);
- FOR_EACH_OBSERVER(SyncMessageStatusObserver, sync_status_observer_list_,
- BeginBlockOnSyncMessage());
+ for (auto& observer : sync_status_observer_list_)
+ observer.BeginBlockOnSyncMessage();
bool result = Dispatcher::Send(msg);
- FOR_EACH_OBSERVER(SyncMessageStatusObserver, sync_status_observer_list_,
- EndBlockOnSyncMessage());
+ for (auto& observer : sync_status_observer_list_)
+ observer.EndBlockOnSyncMessage();
return result;
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698