summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/tab_contents/interstitial_page.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/interstitial_page.cc b/chrome/browser/tab_contents/interstitial_page.cc
index 32fe0b6..aa37c94 100644
--- a/chrome/browser/tab_contents/interstitial_page.cc
+++ b/chrome/browser/tab_contents/interstitial_page.cc
@@ -126,8 +126,11 @@ InterstitialPage::InterstitialPage(WebContents* tab,
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);
DCHECK(!render_view_host_);
}