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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/guest_mode_options_browsertest.cc

Issue 2452983002: ChromeOS: This CL moves chromeos/login/user_names* to user_mananger. (Closed)
Patch Set: Removed unused #includes Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698