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

Unified Diff: content/app/content_main_runner.cc

Issue 10690137: Fix stats counters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 8 years, 5 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/browser/resources/about_stats.js ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 6e030f03515daa72935ceb957cd73bbfd94e4d5b..884eb11d77b1bac282acb6cf5fb817dbdc1d4489 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -203,8 +203,11 @@ static base::ProcessId GetBrowserPid(const CommandLine& command_line) {
// for a few files including process_util_linux.cc.
LOG(ERROR) << "GetBrowserPid() not implemented for Android().";
#elif defined(OS_POSIX)
- // On linux, we're in the zygote here; so we need the parent process' id.
- browser_pid = base::GetParentProcessId(base::GetCurrentProcId());
+ // On linux, we're in a process forked from the zygote here; so we need the
+ // parent's parent process' id.
+ browser_pid =
+ base::GetParentProcessId(
+ base::GetParentProcessId(base::GetCurrentProcId()));
#endif
}
return browser_pid;
« no previous file with comments | « chrome/browser/resources/about_stats.js ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698