| Index: chrome/browser/memory_details.cc
|
| diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc
|
| index ea551c73e61641df098446578e08d4430773be78..b53eb2dda5666a7548a3cfdf4fa98a1abee70ec6 100644
|
| --- a/chrome/browser/memory_details.cc
|
| +++ b/chrome/browser/memory_details.cc
|
| @@ -211,6 +211,11 @@
|
|
|
| void MemoryDetails::CollectChildInfoOnUIThread() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| +
|
| +#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
|
| + const pid_t zygote_pid = content::ZygoteHost::GetInstance()->GetPid();
|
| +#endif
|
| +
|
| ProcessData* const chrome_browser = ChromeBrowser();
|
|
|
| // First pass, collate the widgets by process ID.
|
| @@ -362,7 +367,7 @@
|
| }
|
|
|
| #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
|
| - if (content::ZygoteHost::GetInstance()->IsZygotePid(process.pid)) {
|
| + if (process.pid == zygote_pid) {
|
| process.process_type = content::PROCESS_TYPE_ZYGOTE;
|
| }
|
| #endif
|
|
|