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

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

Issue 785893003: Adapt Chrome OS related part of ChildAccountService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK removed. Created 6 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/system_tray_delegate_chromeos.h" 5 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 custodian_info_changed_observers_.RemoveObserver(observer); 833 custodian_info_changed_observers_.RemoveObserver(observer);
834 } 834 }
835 835
836 void SystemTrayDelegateChromeOS::UserAddedToSession( 836 void SystemTrayDelegateChromeOS::UserAddedToSession(
837 const user_manager::User* active_user) { 837 const user_manager::User* active_user) {
838 } 838 }
839 839
840 void SystemTrayDelegateChromeOS::UserChangedSupervisedStatus( 840 void SystemTrayDelegateChromeOS::UserChangedSupervisedStatus(
841 user_manager::User* user) { 841 user_manager::User* user) {
842 Profile* user_profile = ProfileHelper::Get()->GetProfileByUser(user); 842 Profile* user_profile = ProfileHelper::Get()->GetProfileByUser(user);
843 DCHECK(user_profile);
844 843
845 if (session_started_ && user_profile_ == user_profile) { 844 if (session_started_ &&
845 user_profile != NULL &&
Marc Treib 2014/12/10 12:42:36 Maybe add a comment explaining when user_profile c
846 user_profile_ == user_profile) {
846 ash::Shell::GetInstance()->UpdateAfterLoginStatusChange( 847 ash::Shell::GetInstance()->UpdateAfterLoginStatusChange(
847 GetUserLoginStatus()); 848 GetUserLoginStatus());
848 } 849 }
849 } 850 }
850 851
851 ash::SystemTray* SystemTrayDelegateChromeOS::GetPrimarySystemTray() { 852 ash::SystemTray* SystemTrayDelegateChromeOS::GetPrimarySystemTray() {
852 return ash::Shell::GetInstance()->GetPrimarySystemTray(); 853 return ash::Shell::GetInstance()->GetPrimarySystemTray();
853 } 854 }
854 855
855 ash::SystemTrayNotifier* SystemTrayDelegateChromeOS::GetSystemTrayNotifier() { 856 ash::SystemTrayNotifier* SystemTrayDelegateChromeOS::GetSystemTrayNotifier() {
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 accessibility_subscription_.reset(); 1292 accessibility_subscription_.reset();
1292 else 1293 else
1293 OnAccessibilityModeChanged(details.notify); 1294 OnAccessibilityModeChanged(details.notify);
1294 } 1295 }
1295 1296
1296 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { 1297 ash::SystemTrayDelegate* CreateSystemTrayDelegate() {
1297 return new SystemTrayDelegateChromeOS(); 1298 return new SystemTrayDelegateChromeOS();
1298 } 1299 }
1299 1300
1300 } // namespace chromeos 1301 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/supervised_user/child_accounts/child_account_service.cc ('k') | components/user_manager/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698