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

Unified Diff: extensions/renderer/api/automation/automation_api_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
Index: extensions/renderer/api/automation/automation_api_helper.cc
diff --git a/extensions/renderer/api/automation/automation_api_helper.cc b/extensions/renderer/api/automation/automation_api_helper.cc
index 6123c3533ea0110e7a4ef4a4c21c82b96ad353e3..42a493b86cec529afec862ab858b2617905dfcd3 100644
--- a/extensions/renderer/api/automation/automation_api_helper.cc
+++ b/extensions/renderer/api/automation/automation_api_helper.cc
@@ -32,6 +32,10 @@ bool AutomationApiHelper::OnMessageReceived(const IPC::Message& message) {
return handled;
}
+void AutomationApiHelper::OnDestruct() {
+ delete this;
+}
+
void AutomationApiHelper::OnQuerySelector(int request_id,
int acc_obj_id,
const base::string16& selector) {
« no previous file with comments | « extensions/renderer/api/automation/automation_api_helper.h ('k') | extensions/renderer/extension_frame_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698