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

Unified Diff: chrome/browser/ui/ash/session_state_delegate_chromeos.cc

Issue 2424853003: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/ui (Closed)
Patch Set: explicit types 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
Index: chrome/browser/ui/ash/session_state_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/session_state_delegate_chromeos.cc b/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
index 686996a3758047317a222a2fca01b4dcc0279039..2b86566156f7e69805644e2405d07794b76cce8e 100644
--- a/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
@@ -237,14 +237,14 @@ void SessionStateDelegateChromeos::LoggedInStateChanged() {
void SessionStateDelegateChromeos::ActiveUserChanged(
const user_manager::User* active_user) {
- FOR_EACH_OBSERVER(ash::SessionStateObserver, session_state_observer_list_,
- ActiveUserChanged(active_user->GetAccountId()));
+ for (ash::SessionStateObserver& observer : session_state_observer_list_)
+ observer.ActiveUserChanged(active_user->GetAccountId());
}
void SessionStateDelegateChromeos::UserAddedToSession(
const user_manager::User* added_user) {
- FOR_EACH_OBSERVER(ash::SessionStateObserver, session_state_observer_list_,
- UserAddedToSession(added_user->GetAccountId()));
+ for (ash::SessionStateObserver& observer : session_state_observer_list_)
+ observer.UserAddedToSession(added_user->GetAccountId());
}
void SessionStateDelegateChromeos::OnUserAddingStarted() {
@@ -265,9 +265,8 @@ void SessionStateDelegateChromeos::SetSessionState(SessionState new_state,
}
void SessionStateDelegateChromeos::NotifySessionStateChanged() {
- FOR_EACH_OBSERVER(ash::SessionStateObserver,
- session_state_observer_list_,
- SessionStateChanged(session_state_));
+ for (ash::SessionStateObserver& observer : session_state_observer_list_)
+ observer.SessionStateChanged(session_state_);
}
void DoSwitchUser(const AccountId& account_id) {

Powered by Google App Engine
This is Rietveld 408576698