Commit 01fcc507 authored by fsamuel's avatar fsamuel Committed by Commit bot

GuestView: Cleanup on Embedder process swap

BUG=408688
Test=Launch chrome://extensions with --enable-embedded-extension-options, open SPDY options, navigate to www.google.com, the "Options: SPDY Proxy Extension Options" entry should disappear from the Task Manager.

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

Cr-Commit-Position: refs/heads/master@{#292505}
parent 3ac20004
...@@ -70,6 +70,12 @@ class GuestViewBase::EmbedderWebContentsObserver : public WebContentsObserver { ...@@ -70,6 +70,12 @@ class GuestViewBase::EmbedderWebContentsObserver : public WebContentsObserver {
Destroy(); Destroy();
} }
virtual void RenderViewHostChanged(
content::RenderViewHost* old_host,
content::RenderViewHost* new_host) OVERRIDE {
Destroy();
}
virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE { virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE {
Destroy(); Destroy();
} }
......
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