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

Unified Diff: content/common/child_process_host_impl.cc

Issue 10914279: Cleanup: Add a const variable for /proc/self/exe. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | « content/browser/browser_main_loop.cc ('k') | content/common/set_process_title.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process_host_impl.cc
===================================================================
--- content/common/child_process_host_impl.cc (revision 156845)
+++ content/common/child_process_host_impl.cc (working copy)
@@ -98,7 +98,7 @@
// Valgrind executable, which then crashes. However, it's almost safe to
// assume that the updates won't happen while testing with Valgrind tools.
if (child_path.empty() && flags & CHILD_ALLOW_SELF && !RunningOnValgrind())
- child_path = FilePath("/proc/self/exe");
+ child_path = FilePath(base::kProcSelfExe);
#endif
// On most platforms, the child executable is the same as the current
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/common/set_process_title.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698