| Index: chrome_frame/test/chrome_frame_test_utils.cc
|
| diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc
|
| index 7175eb8450c8f03b743a9a4cb298ea68c26929de..59b542a76e8738f296a5270525ed8ccd2781ba70 100644
|
| --- a/chrome_frame/test/chrome_frame_test_utils.cc
|
| +++ b/chrome_frame/test/chrome_frame_test_utils.cc
|
| @@ -177,13 +177,16 @@ base::ProcessHandle LaunchExecutable(const std::wstring& executable,
|
| return process;
|
| }
|
|
|
| -base::ProcessHandle LaunchChrome(const std::wstring& url) {
|
| +base::ProcessHandle LaunchChrome(const std::wstring& url,
|
| + const FilePath& user_data_dir) {
|
| FilePath path;
|
| PathService::Get(base::DIR_MODULE, &path);
|
| path = path.AppendASCII(kChromeImageName);
|
|
|
| CommandLine cmd(path);
|
| cmd.AppendSwitch(switches::kNoFirstRun);
|
| + if (!user_data_dir.empty())
|
| + cmd.AppendSwitchPath(switches::kUserDataDir, user_data_dir);
|
| cmd.AppendArgNative(url);
|
|
|
| base::ProcessHandle process = NULL;
|
|
|