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

Unified Diff: chromeos/dbus/fake_session_manager_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_power_manager_client.cc ('k') | chromeos/dbus/fake_shill_device_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_session_manager_client.cc
diff --git a/chromeos/dbus/fake_session_manager_client.cc b/chromeos/dbus/fake_session_manager_client.cc
index 32480a84b660db42cd43102aadb97441fd86f2b1..b24085c30bea2778d98068bc1d7c21690dc1b7fc 100644
--- a/chromeos/dbus/fake_session_manager_client.cc
+++ b/chromeos/dbus/fake_session_manager_client.cc
@@ -124,7 +124,8 @@ void FakeSessionManagerClient::StoreDevicePolicy(
device_policy_ = policy_blob;
base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
base::Bind(callback, true));
- FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(true));
+ for (auto& observer : observers_)
+ observer.PropertyChangeComplete(true);
}
void FakeSessionManagerClient::StorePolicyForUser(
@@ -237,7 +238,8 @@ void FakeSessionManagerClient::set_device_local_account_policy(
}
void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) {
- FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success));
+ for (auto& observer : observers_)
+ observer.PropertyChangeComplete(success);
}
} // namespace chromeos
« no previous file with comments | « chromeos/dbus/fake_power_manager_client.cc ('k') | chromeos/dbus/fake_shill_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698