| 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;
|
|
|