Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 088381683c9ac16a6939c50b427de893a92a8f32..40429d51814846c69671b3bce27a1af955e1452b 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -987,8 +987,6 @@ |
} |
if (browser_plugin_embedder_) |
browser_plugin_embedder_->CancelGuestDialogs(); |
- if (delegate_) |
- delegate_->HideValidationMessage(this); |
} |
void WebContentsImpl::ClosePage() { |
@@ -4677,6 +4675,9 @@ |
// Cancel any visible dialogs so they are not left dangling over the sad tab. |
CancelActiveAndPendingDialogs(); |
+ if (delegate_) |
+ delegate_->HideValidationMessage(this); |
+ |
audio_stream_monitor_.RenderProcessGone(rvh->GetProcess()->GetID()); |
// Reset the loading progress. TODO(avi): What does it mean to have a |