Commit e3bd3d03 authored by yukishiino's avatar yukishiino Committed by Commit bot

text input focus: RemoveObserver when RenderProcessHost exits.

Makes sure that a WebView as RenderProcessHostObserver is removed from RenderProcessHost's observer list when RenderProcessHost exits.

BUG=290701

Review URL: https://codereview.chromium.org/878383002

Cr-Commit-Position: refs/heads/master@{#313662}
parent b170090d
...@@ -271,6 +271,7 @@ void WebView::RenderProcessExited(content::RenderProcessHost* host, ...@@ -271,6 +271,7 @@ void WebView::RenderProcessExited(content::RenderProcessHost* host,
void WebView::RenderProcessHostDestroyed(content::RenderProcessHost* host) { void WebView::RenderProcessHostDestroyed(content::RenderProcessHost* host) {
DCHECK_EQ(host, observing_render_process_host_); DCHECK_EQ(host, observing_render_process_host_);
observing_render_process_host_->RemoveObserver(this);
observing_render_process_host_ = nullptr; observing_render_process_host_ = nullptr;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment