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

Unified Diff: content/renderer/screen_orientation/screen_orientation_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/screen_orientation/screen_orientation_dispatcher.cc
diff --git a/content/renderer/screen_orientation/screen_orientation_dispatcher.cc b/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
index f0060ef0b2127ad16113a5b36b936729f88e2e90..5f2071d377945cab190ed1bfd71ddf2da976e616 100644
--- a/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
+++ b/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
@@ -31,6 +31,10 @@ bool ScreenOrientationDispatcher::OnMessageReceived(
return handled;
}
+void ScreenOrientationDispatcher::OnDestruct() {
+ delete this;
+}
+
void ScreenOrientationDispatcher::OnLockSuccess(int request_id) {
blink::WebLockOrientationCallback* callback =
pending_callbacks_.Lookup(request_id);
« no previous file with comments | « content/renderer/screen_orientation/screen_orientation_dispatcher.h ('k') | content/renderer/shared_worker_repository.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698