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

Unified Diff: chromeos/dbus/fake_shill_service_client.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/fake_shill_manager_client.cc ('k') | chromeos/dbus/fake_update_engine_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_shill_service_client.cc
diff --git a/chromeos/dbus/fake_shill_service_client.cc b/chromeos/dbus/fake_shill_service_client.cc
index cbbcc5cafe5b0a00f59ae9fc7e5497b0841f327e..33a8169742ce2d6c4b17a45e0e87900f4cb9b810 100644
--- a/chromeos/dbus/fake_shill_service_client.cc
+++ b/chromeos/dbus/fake_shill_service_client.cc
@@ -521,9 +521,8 @@ void FakeShillServiceClient::NotifyObserversPropertyChanged(
<< path << " : " << property;
return;
}
- FOR_EACH_OBSERVER(ShillPropertyChangedObserver,
- GetObserverList(service_path),
- OnPropertyChanged(property, *value));
+ for (auto& observer : GetObserverList(service_path))
+ observer.OnPropertyChanged(property, *value);
}
base::DictionaryValue* FakeShillServiceClient::GetModifiableServiceProperties(
« no previous file with comments | « chromeos/dbus/fake_shill_manager_client.cc ('k') | chromeos/dbus/fake_update_engine_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698