summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-01 23:51:03 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-01 23:51:03 +0000
commit3746e68c92ee1113470fda76830a12e953d90c96 (patch)
tree193112180a98c719f47835bd17850d7a64916260
parentb76b5230077ff86ea1c4e6bf5a9c10b54a6d3b21 (diff)
downloadchromium_src-3746e68c92ee1113470fda76830a12e953d90c96.zip
chromium_src-3746e68c92ee1113470fda76830a12e953d90c96.tar.gz
chromium_src-3746e68c92ee1113470fda76830a12e953d90c96.tar.bz2
Fix stupid off-by-one crash.
BUG=88257 TEST=none TBR=erg Review URL: http://codereview.chromium.org/7289050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91389 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/tab_contents/infobar_container.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/infobar_container.cc b/chrome/browser/tab_contents/infobar_container.cc
index 58e3688..c16f95d 100644
--- a/chrome/browser/tab_contents/infobar_container.cc
+++ b/chrome/browser/tab_contents/infobar_container.cc
@@ -115,7 +115,7 @@ void InfoBarContainer::RemoveAllInfoBarsForDestruction() {
// TODO(pkasting): Remove this once TabContentsWrapper calls CloseSoon().
for (size_t i = infobars_.size(); i > 0; --i)
- infobars_[i]->CloseSoon();
+ infobars_[i - 1]->CloseSoon();
ChangeTabContents(NULL);
}