Index: chrome/test/base/in_process_browser_test.cc |
diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc |
index ebce6ca3cca5a73d333a4e34523e15347c3d681d..f29448bd496782a7da95287f014d6a970133b85b 100644 |
--- a/chrome/test/base/in_process_browser_test.cc |
+++ b/chrome/test/base/in_process_browser_test.cc |
@@ -87,27 +87,27 @@ InProcessBrowserTest::~InProcessBrowserTest() { |
} |
void InProcessBrowserTest::SetUp() { |
- // Create a temporary user data directory if required. |
- ASSERT_TRUE(CreateUserDataDirectory()) |
- << "Could not create user data directory."; |
- |
// Undo TestingBrowserProcess creation in ChromeTestSuite. |
// TODO(phajdan.jr): Extract a smaller test suite so we don't need this. |
DCHECK(g_browser_process); |
delete g_browser_process; |
g_browser_process = NULL; |
- // Allow subclasses the opportunity to make changes to the default user data |
- // dir before running any tests. |
- ASSERT_TRUE(SetUpUserDataDirectory()) |
- << "Could not set up user data directory."; |
- |
CommandLine* command_line = CommandLine::ForCurrentProcess(); |
// Allow subclasses to change the command line before running any tests. |
SetUpCommandLine(command_line); |
// Add command line arguments that are used by all InProcessBrowserTests. |
PrepareTestCommandLine(command_line); |
+ // Create a temporary user data directory if required. |
+ ASSERT_TRUE(CreateUserDataDirectory()) |
+ << "Could not create user data directory."; |
+ |
+ // Allow subclasses the opportunity to make changes to the default user data |
+ // dir before running any tests. |
+ ASSERT_TRUE(SetUpUserDataDirectory()) |
+ << "Could not set up user data directory."; |
+ |
// Single-process mode is not set in BrowserMain, so process it explicitly, |
// and set up renderer. |
if (command_line->HasSwitch(switches::kSingleProcess)) { |