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

Unified Diff: components/dom_distiller/content/renderer/distillability_agent.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
Index: components/dom_distiller/content/renderer/distillability_agent.cc
diff --git a/components/dom_distiller/content/renderer/distillability_agent.cc b/components/dom_distiller/content/renderer/distillability_agent.cc
index f0ae4b511a4b0d86e8ea6bc99f5709f17e4d8d03..c4662c96e2527d5e35441b591931d37231e8ca4e 100644
--- a/components/dom_distiller/content/renderer/distillability_agent.cc
+++ b/components/dom_distiller/content/renderer/distillability_agent.cc
@@ -184,4 +184,8 @@ void DistillabilityAgent::DidMeaningfulLayout(
DistillabilityAgent::~DistillabilityAgent() {}
+void DistillabilityAgent::OnDestruct() {
+ delete this;
+}
+
} // namespace dom_distiller

Powered by Google App Engine
This is Rietveld 408576698