summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 03:03:13 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 03:03:13 +0000
commitbff6ef77683a85e61c5a916ade6c2f85b29e6f62 (patch)
tree7bec60926c88cc6cbc59ce4e0ecbb0974ce1766d /chrome
parent847dda8ade71638fae9596d4b5102667c29fad1e (diff)
downloadchromium_src-bff6ef77683a85e61c5a916ade6c2f85b29e6f62.zip
chromium_src-bff6ef77683a85e61c5a916ade6c2f85b29e6f62.tar.gz
chromium_src-bff6ef77683a85e61c5a916ade6c2f85b29e6f62.tar.bz2
Fix crashes in WorkerProcessHost. The wrong iterator was being incremented.
TBR=nsylvain Review URL: http://codereview.chromium.org/39107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/child_process_host.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/child_process_host.cc b/chrome/common/child_process_host.cc
index 15d8daa..39e7661 100644
--- a/chrome/common/child_process_host.cc
+++ b/chrome/common/child_process_host.cc
@@ -167,7 +167,7 @@ ChildProcessHost::Iterator::Iterator(ProcessType type)
"ChildProcessInfo::Iterator must be used on the IO thread.";
iterator_ = Singleton<ChildProcessList>::get()->begin();
if (!Done() && (*iterator_)->type() != type_)
- iterator_++;
+ ++(*this);
}
ChildProcessInfo* ChildProcessHost::Iterator::operator++() {