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

Unified Diff: ash/test/test_session_controller_client.cc

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.h ('k') | ash/test/test_system_tray_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_session_controller_client.cc
diff --git a/ash/test/test_session_controller_client.cc b/ash/test/test_session_controller_client.cc
index 6492a7c94ae5f21a912aece59227e863b4c1c46e..19f98b7e0fefb242110712d67368e05f3aa0d838 100644
--- a/ash/test/test_session_controller_client.cc
+++ b/ash/test/test_session_controller_client.cc
@@ -97,10 +97,11 @@ void TestSessionControllerClient::CreatePredefinedUserSessions(int count) {
void TestSessionControllerClient::AddUserSession(
const std::string& display_email,
+ user_manager::UserType user_type,
bool enable_settings) {
mojom::UserSessionPtr session = mojom::UserSession::New();
session->session_id = ++fake_session_id_;
- session->type = user_manager::USER_TYPE_REGULAR;
+ session->type = user_type;
session->account_id =
AccountId::FromUserEmail(GetUserIdFromEmail(display_email));
session->display_name = "Über tray Über tray Über tray Über tray";
« no previous file with comments | « ash/test/test_session_controller_client.h ('k') | ash/test/test_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698