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

Unified Diff: chrome/browser/memory_details.cc

Issue 1532423003: Have each SandboxedProcessLauncherDelegate maintain a zygote. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixup the namespace and header name. Created 4 years, 11 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
Index: chrome/browser/memory_details.cc
diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc
index b53eb2dda5666a7548a3cfdf4fa98a1abee70ec6..ea551c73e61641df098446578e08d4430773be78 100644
--- a/chrome/browser/memory_details.cc
+++ b/chrome/browser/memory_details.cc
@@ -211,11 +211,6 @@ void MemoryDetails::CollectChildInfoOnIOThread(CollectionMode mode) {
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.
@@ -367,7 +362,7 @@ void MemoryDetails::CollectChildInfoOnUIThread() {
}
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
- if (process.pid == zygote_pid) {
+ if (content::ZygoteHost::GetInstance()->IsZygotePid(process.pid)) {
process.process_type = content::PROCESS_TYPE_ZYGOTE;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698