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

Unified Diff: components/renderer_context_menu/render_view_context_menu_base.h

Issue 541753003: Use stored render_frame_id_ instead of using GetRenderFrameHost(), as it may return NULL (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 3 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: components/renderer_context_menu/render_view_context_menu_base.h
diff --git a/components/renderer_context_menu/render_view_context_menu_base.h b/components/renderer_context_menu/render_view_context_menu_base.h
index 5452f1e608e9cc56700f208c7032a6f7ec3777c3..db6c175c016a8c5fff4d97ebd5c967758dbb24a3 100644
--- a/components/renderer_context_menu/render_view_context_menu_base.h
+++ b/components/renderer_context_menu/render_view_context_menu_base.h
@@ -166,6 +166,9 @@ class RenderViewContextMenuBase : public ui::SimpleMenuModel::Delegate,
ui::SimpleMenuModel menu_model_;
+ // Renderer's frame id.
+ int render_frame_id_;
+
// Our observers.
mutable ObserverList<RenderViewContextMenuObserver> observers_;
@@ -180,7 +183,6 @@ class RenderViewContextMenuBase : public ui::SimpleMenuModel::Delegate,
// The RenderFrameHost's IDs.
int render_process_id_;
- int render_frame_id_;
scoped_ptr<ToolkitDelegate> toolkit_delegate_;

Powered by Google App Engine
This is Rietveld 408576698