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

Unified Diff: chromeos/login/login_state.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/disks/mock_disk_mount_manager.cc ('k') | chromeos/network/client_cert_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/login_state.cc
diff --git a/chromeos/login/login_state.cc b/chromeos/login/login_state.cc
index 07a7f6b2c2c87c6ac2fc16639043cb8d1553bd50..99c5dfe8c3ff9c9dad72a3e921fae2fc665b0626 100644
--- a/chromeos/login/login_state.cc
+++ b/chromeos/login/login_state.cc
@@ -133,8 +133,8 @@ LoginState::~LoginState() {
}
void LoginState::NotifyObservers() {
- FOR_EACH_OBSERVER(LoginState::Observer, observer_list_,
- LoggedInStateChanged());
+ for (auto& observer : observer_list_)
+ observer.LoggedInStateChanged();
}
} // namespace chromeos
« no previous file with comments | « chromeos/disks/mock_disk_mount_manager.cc ('k') | chromeos/network/client_cert_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698