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