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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2956673002: [reland] Move navigation-induced hiding of form-validation-bubble to the browser process. (Closed)
Patch Set: Keep ValidationMessageClient::DocumentDetached method. Created 3 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 | content/browser/web_contents/web_contents_impl_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 617f484c9048074e925e5c9f74e88c18fffacacc..52ddbab340bdc1211418e09c4e8ef738543b3935 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -988,6 +988,8 @@ void WebContentsImpl::CancelActiveAndPendingDialogs() {
}
if (browser_plugin_embedder_)
browser_plugin_embedder_->CancelGuestDialogs();
+ if (delegate_)
+ delegate_->HideValidationMessage(this);
}
void WebContentsImpl::ClosePage() {
@@ -4694,9 +4696,6 @@ void WebContentsImpl::RenderViewTerminated(RenderViewHost* rvh,
// 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
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698