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

Unified Diff: ash/test/test_system_tray_delegate.h

Issue 2829813002: cros: Move IsUserSupervised and IsUserChild off SystemTrayDelegate (Closed)
Patch Set: review comments Created 3 years, 8 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 | « ash/test/test_session_controller_client.cc ('k') | ash/test/test_system_tray_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_system_tray_delegate.h
diff --git a/ash/test/test_system_tray_delegate.h b/ash/test/test_system_tray_delegate.h
index 53620121724ccbe599634e159397a88a165f495e..659dfe1a791a5bfd4cfc96ca15f0594f196077c3 100644
--- a/ash/test/test_system_tray_delegate.h
+++ b/ash/test/test_system_tray_delegate.h
@@ -23,6 +23,7 @@ class TestSystemTrayDelegate : public SystemTrayDelegate {
// set up a login status. This will fit to most of the test cases, but this
// cannot be set during the initialization. To test the initialization,
// consider using SetInitialLoginStatus() instead.
+ // TODO(jamescook): Eliminate this method and |login_status_|.
void SetLoginStatus(LoginStatus login_status);
// Updates the session length limit so that the limit will come from now in
@@ -41,7 +42,6 @@ class TestSystemTrayDelegate : public SystemTrayDelegate {
// SystemTrayDelegate:
LoginStatus GetUserLoginStatus() const override;
std::string GetSupervisedUserManager() const override;
- bool IsUserSupervised() const override;
bool GetSessionStartTime(base::TimeTicks* session_start_time) override;
bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override;
void GetCurrentIME(IMEInfo* info) override;
@@ -57,20 +57,6 @@ class TestSystemTrayDelegate : public SystemTrayDelegate {
DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate);
};
-// Changes the initial login status before TestSystemTrayDelegate is created.
-// Allows testing the case when chrome is restarted right after login (such as
-// when a flag is set).
-class ScopedInitialLoginStatus {
- public:
- explicit ScopedInitialLoginStatus(LoginStatus status);
- ~ScopedInitialLoginStatus();
-
- private:
- LoginStatus old_status_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedInitialLoginStatus);
-};
-
} // namespace test
} // namespace ash
« no previous file with comments | « ash/test/test_session_controller_client.cc ('k') | ash/test/test_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698