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

Unified Diff: ash/test/test_system_tray_delegate.h

Issue 2829813002: cros: Move IsUserSupervised and IsUserChild off SystemTrayDelegate (Closed)
Patch Set: 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
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..8213bb38ae48d91a4127ccbcf3a95e2de3b35448 100644
--- a/ash/test/test_system_tray_delegate.h
+++ b/ash/test/test_system_tray_delegate.h
@@ -41,7 +41,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 +56,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

Powered by Google App Engine
This is Rietveld 408576698