| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/webui/options/chromeos/guest_mode_options_browsertes
t.h" | |
| 6 | |
| 7 #include "base/command_line.h" | |
| 8 #include "chrome/browser/ui/webui/options/options_ui_browsertest.h" | |
| 9 #include "chrome/common/chrome_switches.h" | |
| 10 #include "chrome/test/base/testing_profile.h" | |
| 11 #include "chromeos/chromeos_switches.h" | |
| 12 #include "components/signin/core/account_id/account_id.h" | |
| 13 #include "components/user_manager/user_names.h" | |
| 14 | |
| 15 GuestModeOptionsUIBrowserTest::GuestModeOptionsUIBrowserTest() {} | |
| 16 | |
| 17 GuestModeOptionsUIBrowserTest::~GuestModeOptionsUIBrowserTest() {} | |
| 18 | |
| 19 void GuestModeOptionsUIBrowserTest::SetUpCommandLine( | |
| 20 base::CommandLine* command_line) { | |
| 21 command_line->AppendSwitch(chromeos::switches::kGuestSession); | |
| 22 command_line->AppendSwitchASCII( | |
| 23 chromeos::switches::kLoginUser, | |
| 24 user_manager::GuestAccountId().GetUserEmail()); | |
| 25 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile, | |
| 26 TestingProfile::kTestUserProfileDir); | |
| 27 command_line->AppendSwitch(switches::kIncognito); | |
| 28 } | |
| OLD | NEW |