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

Unified Diff: ui/views/controls/webview/webview.cc

Issue 878383002: text input focus: RemoveObserver when RenderProcessHost exits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: ui/views/controls/webview/webview.cc
diff --git a/ui/views/controls/webview/webview.cc b/ui/views/controls/webview/webview.cc
index f695de4628382577e6b6c31b265673b9b7cace47..2e4ba84fa000b8bd33675f371e1ff296849a1820 100644
--- a/ui/views/controls/webview/webview.cc
+++ b/ui/views/controls/webview/webview.cc
@@ -271,6 +271,7 @@ void WebView::RenderProcessExited(content::RenderProcessHost* host,
void WebView::RenderProcessHostDestroyed(content::RenderProcessHost* host) {
DCHECK_EQ(host, observing_render_process_host_);
+ observing_render_process_host_->RemoveObserver(this);
observing_render_process_host_ = nullptr;
}
« 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