Commit 6cea14da authored by avi@chromium.org's avatar avi@chromium.org

Improves a code block in in_process_browser_test, avoids the use of...

Improves a code block in in_process_browser_test, avoids the use of FilePath::FromWStringHack and the use of a deprecated function.

Patch by tfarina.

BUG=None
TEST=run browser_tests.exe 

Review URL: http://codereview.chromium.org/192035


git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25881 0039d316-1c4b-4281-b951-d872f2087c98
parent eafb5b7b
......@@ -111,14 +111,13 @@ void InProcessBrowserTest::SetUp() {
// Explicitly set the path of the exe used for the renderer and plugin,
// otherwise they'll try to use unit_test.exe.
std::wstring subprocess_path;
FilePath subprocess_path;
PathService::Get(base::FILE_EXE, &subprocess_path);
FilePath fp_subprocess_path = FilePath::FromWStringHack(subprocess_path);
subprocess_path = fp_subprocess_path.DirName().ToWStringHack();
file_util::AppendToPath(&subprocess_path,
chrome::kBrowserProcessExecutablePath);
subprocess_path = subprocess_path.DirName();
subprocess_path = subprocess_path.AppendASCII(WideToASCII(
chrome::kBrowserProcessExecutablePath));
command_line->AppendSwitchWithValue(switches::kBrowserSubprocessPath,
subprocess_path);
subprocess_path.ToWStringHack());
// Enable warning level logging so that we can see when bad stuff happens.
command_line->AppendSwitch(switches::kEnableLogging);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment