Index: components/autofill/content/renderer/page_click_tracker.cc |
diff --git a/components/autofill/content/renderer/page_click_tracker.cc b/components/autofill/content/renderer/page_click_tracker.cc |
index 590e7af922f1e06548c03dfd3e0190c00ee297d3..14ceda82fd5420864ff561f546dbe7aeb7f84229 100644 |
--- a/components/autofill/content/renderer/page_click_tracker.cc |
+++ b/components/autofill/content/renderer/page_click_tracker.cc |
@@ -75,6 +75,10 @@ PageClickTracker::PageClickTracker(content::RenderView* render_view, |
PageClickTracker::~PageClickTracker() { |
} |
+void PageClickTracker::OnDestruct() { |
+ // No-op. Don't delete |this|. |
+} |
+ |
void PageClickTracker::DidHandleMouseEvent(const WebMouseEvent& event) { |
if (event.type != WebInputEvent::MouseDown || |
event.button != WebMouseEvent::ButtonLeft) { |