summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_process_host.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 14:49:26 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 14:49:26 +0000
commit0615b6f5682896d3109349f1857839731e87e672 (patch)
tree2b16d769e31582be6b2acb7552687166656d842b /chrome/browser/renderer_host/render_process_host.cc
parentda4b92fee136f90425c3400c2fe11469972178cf (diff)
downloadchromium_src-0615b6f5682896d3109349f1857839731e87e672.zip
chromium_src-0615b6f5682896d3109349f1857839731e87e672.tar.gz
chromium_src-0615b6f5682896d3109349f1857839731e87e672.tar.bz2
Remove RenderProcessHost::size(). With Pawel's change, size() isn't necessarily
correct, and it was badly named and needed fixing anyway. This patch just removes it. There were a few debugging places that used it which I just removed, since I think they're old and haven't been useful lately. The non-trivial changes were in the histogram code, it now counts them slightly differently. Review URL: http://codereview.chromium.org/171051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_process_host.cc')
-rw-r--r--chrome/browser/renderer_host/render_process_host.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/browser/renderer_host/render_process_host.cc b/chrome/browser/renderer_host/render_process_host.cc
index 4f0cbc0..bbec190 100644
--- a/chrome/browser/renderer_host/render_process_host.cc
+++ b/chrome/browser/renderer_host/render_process_host.cc
@@ -130,11 +130,6 @@ RenderProcessHost::iterator RenderProcessHost::AllHostsIterator() {
}
// static
-size_t RenderProcessHost::size() {
- return all_hosts.size();
-}
-
-// static
RenderProcessHost* RenderProcessHost::FromID(int render_process_id) {
return all_hosts.Lookup(render_process_id);
}
@@ -158,7 +153,7 @@ RenderProcessHost* RenderProcessHost::GetExistingProcessHost(Profile* profile,
Type type) {
// First figure out which existing renderers we can use.
std::vector<RenderProcessHost*> suitable_renderers;
- suitable_renderers.reserve(size());
+ suitable_renderers.reserve(all_hosts.size());
iterator iter(AllHostsIterator());
while (!iter.IsAtEnd()) {