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

Unified Diff: chrome/browser/utility_process_host.cc

Issue 164298: Back out r22981, it may have caused Windows test failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 4 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
Index: chrome/browser/utility_process_host.cc
===================================================================
--- chrome/browser/utility_process_host.cc (revision 22989)
+++ chrome/browser/utility_process_host.cc (working copy)
@@ -52,7 +52,12 @@
}
std::wstring UtilityProcessHost::GetUtilityProcessCmd() {
- return GetChildPath();
+ std::wstring exe_path = CommandLine::ForCurrentProcess()->GetSwitchValue(
+ switches::kBrowserSubprocessPath);
+ if (exe_path.empty()) {
+ PathService::Get(base::FILE_EXE, &exe_path);
+ }
+ return exe_path;
}
bool UtilityProcessHost::StartProcess(const FilePath& exposed_dir) {
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698