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

Side by Side Diff: chrome/browser/ui/ash/session_state_delegate_chromeos.cc

Issue 26359003: Adding "UserAddedToSession" notifier to the SessionStateObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/ash/session_state_delegate_chromeos.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/session_state_delegate_chromeos.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698