summaryrefslogtreecommitdiffstats
path: root/chrome/browser/memory_details.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 18:57:46 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 18:57:46 +0000
commit201b273dda785bdf5559cefa83c7955fd4aefeba (patch)
tree8f1bca5b3d307dcbdb2184557f6e791033c0a32c /chrome/browser/memory_details.cc
parent15cf713daabbba9e96ee2b9372de56941b7a46a2 (diff)
downloadchromium_src-201b273dda785bdf5559cefa83c7955fd4aefeba.zip
chromium_src-201b273dda785bdf5559cefa83c7955fd4aefeba.tar.gz
chromium_src-201b273dda785bdf5559cefa83c7955fd4aefeba.tar.bz2
Small clean-up to not expose base::Process from RenderProcesHost, and instead only expose base::ProcessHandle. Precursor to moving process startup off the UI thread.
Review URL: http://codereview.chromium.org/387047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31922 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/memory_details.cc')
-rw-r--r--chrome/browser/memory_details.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc
index 9953442a..f212698 100644
--- a/chrome/browser/memory_details.cc
+++ b/chrome/browser/memory_details.cc
@@ -92,8 +92,10 @@ void MemoryDetails::CollectChildInfoOnUIThread() {
RenderProcessHost::AllHostsIterator()); !renderer_iter.IsAtEnd();
renderer_iter.Advance()) {
DCHECK(renderer_iter.GetCurrentValue());
- if (process.pid != renderer_iter.GetCurrentValue()->process().pid())
+ if (process.pid !=
+ base::GetProcId(renderer_iter.GetCurrentValue()->GetHandle())) {
continue;
+ }
process.type = ChildProcessInfo::RENDER_PROCESS;
// The RenderProcessHost may host multiple TabContents. Any
// of them which contain diagnostics information make the whole