OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/ash/session_state_delegate_chromeos.h" | 5 #include "chrome/browser/ui/ash/session_state_delegate_chromeos.h" |
6 | 6 |
7 #include "ash/session_state_observer.h" | 7 #include "ash/session_state_observer.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 ash::SessionStateObserver* observer) { | 157 ash::SessionStateObserver* observer) { |
158 session_state_observer_list_.RemoveObserver(observer); | 158 session_state_observer_list_.RemoveObserver(observer); |
159 } | 159 } |
160 | 160 |
161 void SessionStateDelegateChromeos::ActiveUserChanged( | 161 void SessionStateDelegateChromeos::ActiveUserChanged( |
162 const chromeos::User* active_user) { | 162 const chromeos::User* active_user) { |
163 FOR_EACH_OBSERVER(ash::SessionStateObserver, | 163 FOR_EACH_OBSERVER(ash::SessionStateObserver, |
164 session_state_observer_list_, | 164 session_state_observer_list_, |
165 ActiveUserChanged(active_user->email())); | 165 ActiveUserChanged(active_user->email())); |
166 } | 166 } |
| 167 |
| 168 void SessionStateDelegateChromeos::UserAddedToSession( |
| 169 const chromeos::User* added_user) { |
| 170 FOR_EACH_OBSERVER(ash::SessionStateObserver, |
| 171 session_state_observer_list_, |
| 172 UserAddedToSession(added_user->email())); |
| 173 } |
OLD | NEW |