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

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

Issue 49049: Workaround a SafeBrowsingBlockingPage crasher (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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/interstitial_page.cc
===================================================================
--- chrome/browser/tab_contents/interstitial_page.cc (revision 12710)
+++ chrome/browser/tab_contents/interstitial_page.cc (working copy)
@@ -126,8 +126,11 @@
InterstitialPage::~InterstitialPage() {
InterstitialPageMap::iterator iter = tab_to_interstitial_page_->find(tab_);
- DCHECK(iter != tab_to_interstitial_page_->end());
- tab_to_interstitial_page_->erase(iter);
+ DCHECK(iter != tab_to_interstitial_page_->end()) <<
+ "InterstitialPage missing from map. Please add a comment to the bug "
+ "http://crbug.com/9442 with the URL you were visiting";
+ if (iter != tab_to_interstitial_page_->end())
+ tab_to_interstitial_page_->erase(iter);
Paul Godavari 2009/03/28 01:34:54 LGTM. Could this be due to multiple malware resou
jcampan 2009/03/28 01:42:22 Shouldn't be the case anymore. I added some code f
DCHECK(!render_view_host_);
}
« 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