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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.h

Issue 637533002: Added calls for deferred supervised user status change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lost method added. Created 6 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 | « no previous file | chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/system_tray_delegate_chromeos.h
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.h b/chrome/browser/ui/ash/system_tray_delegate_chromeos.h
index 8e68e2fb94a2aaacb9c732ec3e35d5d8e4e4cac8..b53183a1b8117516a8aac4d2bb5b246f143e0e79 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.h
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.h
@@ -25,12 +25,17 @@
#include "chromeos/ime/input_method_manager.h"
#include "chromeos/login/login_state.h"
#include "components/policy/core/common/cloud/cloud_policy_store.h"
+#include "components/user_manager/user_manager.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_discovery_session.h"
#include "extensions/browser/app_window/app_window_registry.h"
+namespace user_manager {
+class User;
+}
+
namespace chromeos {
class SystemTrayDelegateChromeOS
@@ -45,7 +50,8 @@ class SystemTrayDelegateChromeOS
public policy::CloudPolicyStore::Observer,
public ash::SessionStateObserver,
public chrome::BrowserListObserver,
- public extensions::AppWindowRegistry::Observer {
+ public extensions::AppWindowRegistry::Observer,
+ public user_manager::UserManager::UserSessionStateObserver {
public:
SystemTrayDelegateChromeOS();
@@ -127,6 +133,13 @@ class SystemTrayDelegateChromeOS
virtual ash::tray::UserAccountsDelegate* GetUserAccountsDelegate(
const std::string& user_id) override;
+ // Overridden from user_manager::UserManager::UserSessionStateObserver:
+ virtual void UserAddedToSession(const user_manager::User* active_user)
+ override;
+
+ virtual void UserChangedSupervisedStatus(
+ user_manager::User* user) override;
+
// browser tests need to call ShouldUse24HourClock().
bool GetShouldUse24HourClockForTesting() const;
@@ -247,6 +260,7 @@ class SystemTrayDelegateChromeOS
base::TimeDelta session_length_limit_;
std::string enterprise_domain_;
bool should_run_bluetooth_discovery_;
+ bool session_started_;
scoped_refptr<device::BluetoothAdapter> bluetooth_adapter_;
scoped_ptr<device::BluetoothDiscoverySession> bluetooth_discovery_session_;
« no previous file with comments | « no previous file | chrome/browser/ui/ash/system_tray_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698