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

Unified Diff: content/renderer/notification_permission_dispatcher.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: content/renderer/notification_permission_dispatcher.cc
diff --git a/content/renderer/notification_permission_dispatcher.cc b/content/renderer/notification_permission_dispatcher.cc
index f038b5c2dfb923791270ad6efc08bde70796e07e..c2aeb6ae6e09b8a5329983eaf119e39e19f9af8c 100644
--- a/content/renderer/notification_permission_dispatcher.cc
+++ b/content/renderer/notification_permission_dispatcher.cc
@@ -55,4 +55,8 @@ void NotificationPermissionDispatcher::OnPermissionRequestComplete(
callback->permissionRequestComplete(blink_status);
}
+void NotificationPermissionDispatcher::OnDestruct() {
+ delete this;
+}
+
} // namespace content
« no previous file with comments | « content/renderer/notification_permission_dispatcher.h ('k') | content/renderer/pepper/pepper_browser_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698