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

Unified Diff: chrome/renderer/pepper/pepper_helper.cc

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 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 | « chrome/renderer/pepper/pepper_helper.h ('k') | chrome/renderer/plugins/plugin_preroller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/pepper_helper.cc
diff --git a/chrome/renderer/pepper/pepper_helper.cc b/chrome/renderer/pepper/pepper_helper.cc
index ccf2933a8a3c0b1a32459dc991f47ca4d3ec310f..503150fb76f97ae4b0e358d349086c502b9afbe7 100644
--- a/chrome/renderer/pepper/pepper_helper.cc
+++ b/chrome/renderer/pepper/pepper_helper.cc
@@ -25,3 +25,7 @@ void PepperHelper::DidCreatePepperPlugin(content::RendererPpapiHost* host) {
host->GetPpapiHost()->AddInstanceMessageFilter(
base::WrapUnique(new PepperSharedMemoryMessageFilter(host)));
}
+
+void PepperHelper::OnDestruct() {
+ delete this;
+}
« no previous file with comments | « chrome/renderer/pepper/pepper_helper.h ('k') | chrome/renderer/plugins/plugin_preroller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698