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

Unified Diff: chrome/test/in_process_browser_test.cc

Issue 99011: Fix issue 11006 - any plugin process started by InProcessBrowserTest was... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/in_process_browser_test.cc
===================================================================
--- chrome/test/in_process_browser_test.cc (revision 14386)
+++ chrome/test/in_process_browser_test.cc (working copy)
@@ -111,15 +111,16 @@
if (command_line->HasSwitch(switches::kSingleProcess))
RenderProcessHost::set_run_renderer_in_process(true);
- // Explicitly set the path of the exe used for the renderer, otherwise it'll
- // try to use unit_test.exe.
- std::wstring renderer_path;
- PathService::Get(base::FILE_EXE, &renderer_path);
- FilePath fp_renderer_path = FilePath::FromWStringHack(renderer_path);
- renderer_path = fp_renderer_path.DirName().ToWStringHack();
- file_util::AppendToPath(&renderer_path,
+ // 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;
+ 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);
- command_line->AppendSwitchWithValue(switches::kRendererPath, renderer_path);
+ command_line->AppendSwitchWithValue(switches::kBrowserSubprocessPath,
+ subprocess_path);
sandbox::SandboxInterfaceInfo sandbox_info = {0};
SandboxInitWrapper sandbox_wrapper;
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698