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

Unified Diff: chromeos/dbus/shill_client_helper.cc

Issue 2413963002: Replace FOR_EACH_OBSERVER in chromeos/ with range-based for (Closed)
Patch Set: Run the script again with '/mg' 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 | « chromeos/dbus/session_manager_client.cc ('k') | chromeos/dbus/system_clock_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/shill_client_helper.cc
diff --git a/chromeos/dbus/shill_client_helper.cc b/chromeos/dbus/shill_client_helper.cc
index 47970246870513f632588860f6f4d955188530c6..647c47321ba377936b4af561c4893087e607201a 100644
--- a/chromeos/dbus/shill_client_helper.cc
+++ b/chromeos/dbus/shill_client_helper.cc
@@ -547,8 +547,8 @@ void ShillClientHelper::OnPropertyChanged(dbus::Signal* signal) {
if (!value.get())
return;
- FOR_EACH_OBSERVER(ShillPropertyChangedObserver, observer_list_,
- OnPropertyChanged(name, *value));
+ for (auto& observer : observer_list_)
+ observer.OnPropertyChanged(name, *value);
}
} // namespace chromeos
« no previous file with comments | « chromeos/dbus/session_manager_client.cc ('k') | chromeos/dbus/system_clock_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698