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

Unified Diff: components/renderer_context_menu/render_view_context_menu_base.cc

Issue 678653003: Remove Downcasting RVContextMenuBase in ContextMenuDeleagate implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @toot Created 6 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: components/renderer_context_menu/render_view_context_menu_base.cc
diff --git a/components/renderer_context_menu/render_view_context_menu_base.cc b/components/renderer_context_menu/render_view_context_menu_base.cc
index cda6c4667aef1908774a90842753fd62598a7b95..017d36dfbb0bf0c5adf3a5fba1a1fa780b9c52c3 100644
--- a/components/renderer_context_menu/render_view_context_menu_base.cc
+++ b/components/renderer_context_menu/render_view_context_menu_base.cc
@@ -172,6 +172,8 @@ void RenderViewContextMenuBase::Init() {
DCHECK_NE(-1, content_context_custom_first);
DCHECK_NE(-1, content_context_custom_last);
+ CalculateScreenCoordinatesInParams();
+
InitMenu();
if (toolkit_delegate_)
toolkit_delegate_->Init(&menu_model_);

Powered by Google App Engine
This is Rietveld 408576698