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

Side by Side Diff: chrome/browser/chromeos/login/oobe_base_test.cc

Issue 240333011: Always load signin profile on Chrome OS startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Next iteration. Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/chromeos/login/oobe_base_test.h" 5 #include "chrome/browser/chromeos/login/oobe_base_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 21 matching lines...) Expand all
32 // Note the path name must be the same as in shill stub. 32 // Note the path name must be the same as in shill stub.
33 const char kStubEthernetServicePath[] = "eth1"; 33 const char kStubEthernetServicePath[] = "eth1";
34 34
35 } // namespace 35 } // namespace
36 36
37 OobeBaseTest::OobeBaseTest() 37 OobeBaseTest::OobeBaseTest()
38 : fake_gaia_(new FakeGaia()), 38 : fake_gaia_(new FakeGaia()),
39 network_portal_detector_(NULL), 39 network_portal_detector_(NULL),
40 needs_background_networking_(false) { 40 needs_background_networking_(false) {
41 set_exit_when_last_browser_closes(false); 41 set_exit_when_last_browser_closes(false);
42 set_chromeos_user_ = false;
43 } 42 }
44 43
45 OobeBaseTest::~OobeBaseTest() { 44 OobeBaseTest::~OobeBaseTest() {
46 } 45 }
47 46
48 void OobeBaseTest::SetUp() { 47 void OobeBaseTest::SetUp() {
49 base::FilePath test_data_dir; 48 base::FilePath test_data_dir;
50 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir); 49 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir);
51 embedded_test_server()->ServeFilesFromDirectory(test_data_dir); 50 embedded_test_server()->ServeFilesFromDirectory(test_data_dir);
52 embedded_test_server()->RegisterRequestHandler( 51 embedded_test_server()->RegisterRequestHandler(
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 173
175 WebUILoginDisplay* OobeBaseTest::GetLoginDisplay() { 174 WebUILoginDisplay* OobeBaseTest::GetLoginDisplay() {
176 ExistingUserController* controller = 175 ExistingUserController* controller =
177 ExistingUserController::current_controller(); 176 ExistingUserController::current_controller();
178 CHECK(controller); 177 CHECK(controller);
179 return static_cast<WebUILoginDisplay*>( 178 return static_cast<WebUILoginDisplay*>(
180 controller->login_display()); 179 controller->login_display());
181 } 180 }
182 181
183 } // namespace chromeos 182 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | chrome/browser/chromeos/profiles/profile_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698