Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(988)

Unified Diff: chrome/browser/tab_contents/infobar_container.cc

Issue 7289050: Fix stupid off-by-one crash. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/infobar_container.cc
===================================================================
--- chrome/browser/tab_contents/infobar_container.cc (revision 91316)
+++ chrome/browser/tab_contents/infobar_container.cc (working copy)
@@ -115,7 +115,7 @@
// 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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698