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

Unified Diff: trunk/src/content/browser/browser_plugin/browser_plugin_guest.cc

Issue 23965004: Revert 222090 "<webview>: Cleanup WebRequest event listeners whe..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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
Index: trunk/src/content/browser/browser_plugin/browser_plugin_guest.cc
===================================================================
--- trunk/src/content/browser/browser_plugin/browser_plugin_guest.cc (revision 222122)
+++ trunk/src/content/browser/browser_plugin/browser_plugin_guest.cc (working copy)
@@ -319,7 +319,8 @@
// RenderViewHostObserver:
virtual void RenderViewHostDestroyed(
RenderViewHost* render_view_host) OVERRIDE {
- browser_plugin_guest_->EmbedderDestroyed();
+ browser_plugin_guest_->embedder_web_contents_ = NULL;
+ browser_plugin_guest_->Destroy();
}
private:
@@ -423,13 +424,6 @@
return request_id;
}
-void BrowserPluginGuest::EmbedderDestroyed() {
- embedder_web_contents_ = NULL;
- if (delegate_)
- delegate_->EmbedderDestroyed();
- Destroy();
-}
-
void BrowserPluginGuest::Destroy() {
is_in_destruction_ = true;
if (!attached() && opener())

Powered by Google App Engine
This is Rietveld 408576698