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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2391883006: Mojo-ify implementation of screen orientation locking/unlocking. (Closed)
Patch Set: Codereview update Created 4 years, 2 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/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 35b472ad167ac9eeff39a1eae3a9638b2fdd528b..7b56c19669688446399be06637b79bb9eaa8cf22 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1188,6 +1188,11 @@ RenderFrameImpl::~RenderFrameImpl() {
render_view_->UnregisterRenderFrame(this);
g_routing_id_frame_map.Get().erase(routing_id_);
RenderThread::Get()->RemoveRoute(routing_id_);
+
+ if (screen_orientation_dispatcher_) {
blundell 2016/10/25 16:09:27 why this added code?
lunalu1 2016/11/03 23:15:25 Done.
+ delete screen_orientation_dispatcher_;
+ screen_orientation_dispatcher_ = nullptr;
+ }
}
void RenderFrameImpl::BindToWebFrame(blink::WebLocalFrame* web_frame) {

Powered by Google App Engine
This is Rietveld 408576698