ports/www/chromium/files/patch-chrome__browser__memory_details.cc
Rene Ladan d7a094b3d7 On behalf of the Chromium team, present version 11.0.696.57 (new stable version)
Patch updates from:	George Liaskos
Security:	6887828f-0229-11e0-b84d-00262d5ed8ee
2011-04-30 10:04:15 +00:00

29 lines
1 KiB
C++

--- chrome/browser/memory_details.cc.orig 2011-04-15 11:01:47.000000000 +0300
+++ chrome/browser/memory_details.cc 2011-04-15 22:31:00.350640234 +0300
@@ -25,7 +25,7 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
#include "content/browser/zygote_host_linux.h"
#include "content/browser/renderer_host/render_sandbox_host_linux.h"
#endif
@@ -109,7 +109,7 @@
void MemoryDetails::CollectChildInfoOnUIThread() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
const pid_t zygote_pid = ZygoteHost::GetInstance()->pid();
const pid_t sandbox_helper_pid = RenderSandboxHostLinux::GetInstance()->pid();
#endif
@@ -236,7 +236,7 @@
}
}
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
if (process.pid == zygote_pid) {
process.type = ChildProcessInfo::ZYGOTE_PROCESS;
} else if (process.pid == sandbox_helper_pid) {