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 1249f7a854d401d32e43ba1e3920076885a5f5e6..82792dd1af2c1ec1236eaf42b483f870c48abc99 100644 |
--- a/components/renderer_context_menu/render_view_context_menu_base.h |
+++ b/components/renderer_context_menu/render_view_context_menu_base.h |
@@ -160,6 +160,7 @@ class RenderViewContextMenuBase : public ui::SimpleMenuModel::Delegate, |
// TODO(oshima): Remove this. |
virtual void AppendPlatformEditableItems() {} |
+ // May return nullptr if the frame was deleted while the menu was open. |
content::RenderFrameHost* GetRenderFrameHost(); |
bool IsCustomItemChecked(int id) const; |