diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-04 17:52:11 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-04 17:52:11 +0000 |
commit | b6ac6aa1683d1af78b786ab2b8d6e87d42dddc6a (patch) | |
tree | 0d1f94561a7dd0cc61ba9e388793073df904cc0e /chrome/app | |
parent | f820f6f10f3800512cccfb8755cc17af7c28c3cc (diff) | |
download | chromium_src-b6ac6aa1683d1af78b786ab2b8d6e87d42dddc6a.zip chromium_src-b6ac6aa1683d1af78b786ab2b8d6e87d42dddc6a.tar.gz chromium_src-b6ac6aa1683d1af78b786ab2b8d6e87d42dddc6a.tar.bz2 |
Fix browser-pid computation. The zygote is a child of the browser, and the
renderer is a child of the zygote.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6098002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r-- | chrome/app/chrome_main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc index 56e8981..b13944c 100644 --- a/chrome/app/chrome_main.cc +++ b/chrome/app/chrome_main.cc @@ -531,7 +531,8 @@ int RunZygote(const MainFunctionParams& main_function_params) { // The StatsTable must be initialized in each process; we already // initialized for the browser process, now we need to initialize // within the new processes as well. - pid_t browser_pid = base::GetParentProcessId(base::GetCurrentProcId()); + pid_t browser_pid = base::GetParentProcessId( + base::GetParentProcessId(base::GetCurrentProcId())); InitializeStatsTable(browser_pid, command_line); MainFunctionParams main_params(command_line, |