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

Side by Side Diff: ash/test/test_system_tray_delegate.h

Issue 561713002: ash: Add checks for supervised users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Default flag value set in user class constructor. Created 6 years, 3 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
« no previous file with comments | « ash/system/user/user_card_view.cc ('k') | ash/test/test_system_tray_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include "ash/system/tray/default_system_tray_delegate.h" 8 #include "ash/system/tray/default_system_tray_delegate.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 // Updates the session length limit so that the limit will come from now in 37 // Updates the session length limit so that the limit will come from now in
38 // |new_limit|. 38 // |new_limit|.
39 void SetSessionLengthLimitForTest(const base::TimeDelta& new_limit); 39 void SetSessionLengthLimitForTest(const base::TimeDelta& new_limit);
40 40
41 // Clears the session length limit. 41 // Clears the session length limit.
42 void ClearSessionLengthLimit(); 42 void ClearSessionLengthLimit();
43 43
44 // Overridden from SystemTrayDelegate: 44 // Overridden from SystemTrayDelegate:
45 virtual user::LoginStatus GetUserLoginStatus() const OVERRIDE; 45 virtual user::LoginStatus GetUserLoginStatus() const OVERRIDE;
46 virtual bool IsUserSupervised() const OVERRIDE;
46 virtual bool ShouldShowDisplayNotification() OVERRIDE; 47 virtual bool ShouldShowDisplayNotification() OVERRIDE;
47 virtual bool GetSessionStartTime( 48 virtual bool GetSessionStartTime(
48 base::TimeTicks* session_start_time) OVERRIDE; 49 base::TimeTicks* session_start_time) OVERRIDE;
49 virtual bool GetSessionLengthLimit( 50 virtual bool GetSessionLengthLimit(
50 base::TimeDelta* session_length_limit) OVERRIDE; 51 base::TimeDelta* session_length_limit) OVERRIDE;
51 virtual void ShutDown() OVERRIDE; 52 virtual void ShutDown() OVERRIDE;
52 virtual void SignOut() OVERRIDE; 53 virtual void SignOut() OVERRIDE;
53 54
54 private: 55 private:
55 bool should_show_display_notification_; 56 bool should_show_display_notification_;
56 user::LoginStatus login_status_; 57 user::LoginStatus login_status_;
57 base::TimeDelta session_length_limit_; 58 base::TimeDelta session_length_limit_;
58 bool session_length_limit_set_; 59 bool session_length_limit_set_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); 61 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate);
61 }; 62 };
62 63
63 } // namespace test 64 } // namespace test
64 } // namespace ash 65 } // namespace ash
65 66
66 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ 67 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/user/user_card_view.cc ('k') | ash/test/test_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698