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

Unified Diff: ash/test/test_session_controller_client.cc

Issue 2821363002: cros: Disable system tray help/lock buttons during supervised user creation (Closed)
Patch Set: fix browser test 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_session_controller_client.cc
diff --git a/ash/test/test_session_controller_client.cc b/ash/test/test_session_controller_client.cc
index 5d907cc90f596cff321667566c437c027aab17fe..6492a7c94ae5f21a912aece59227e863b4c1c46e 100644
--- a/ash/test/test_session_controller_client.cc
+++ b/ash/test/test_session_controller_client.cc
@@ -96,7 +96,8 @@ void TestSessionControllerClient::CreatePredefinedUserSessions(int count) {
}
void TestSessionControllerClient::AddUserSession(
- const std::string& display_email) {
+ const std::string& display_email,
+ bool enable_settings) {
mojom::UserSessionPtr session = mojom::UserSession::New();
session->session_id = ++fake_session_id_;
session->type = user_manager::USER_TYPE_REGULAR;
@@ -104,7 +105,7 @@ void TestSessionControllerClient::AddUserSession(
AccountId::FromUserEmail(GetUserIdFromEmail(display_email));
session->display_name = "Über tray Über tray Über tray Über tray";
session->display_email = display_email;
- session->should_enable_settings = true;
+ session->should_enable_settings = enable_settings;
session->should_show_notification_tray = true;
controller_->UpdateUserSession(std::move(session));
}
« no previous file with comments | « ash/test/test_session_controller_client.h ('k') | chrome/browser/chromeos/system/tray_accessibility_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698