diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 18:57:46 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 18:57:46 +0000 |
commit | 201b273dda785bdf5559cefa83c7955fd4aefeba (patch) | |
tree | 8f1bca5b3d307dcbdb2184557f6e791033c0a32c /chrome/browser/memory_details.cc | |
parent | 15cf713daabbba9e96ee2b9372de56941b7a46a2 (diff) | |
download | chromium_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.cc | 4 |
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 |