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

Unified Diff: chrome/browser/extensions/context_menu_matcher.cc

Issue 1772513002: Add frameId to contextMenus.onClicked / onclick. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: chrome/browser/extensions/context_menu_matcher.cc
diff --git a/chrome/browser/extensions/context_menu_matcher.cc b/chrome/browser/extensions/context_menu_matcher.cc
index 24aceca280773c07dfaef00150d78c979e5216a6..211932e6faec6fccc8eefcfd4aa5a67331cc82f7 100644
--- a/chrome/browser/extensions/context_menu_matcher.cc
+++ b/chrome/browser/extensions/context_menu_matcher.cc
@@ -166,15 +166,18 @@ bool ContextMenuMatcher::IsCommandIdEnabled(int command_id) const {
return item->enabled();
}
-void ContextMenuMatcher::ExecuteCommand(int command_id,
+void ContextMenuMatcher::ExecuteCommand(
+ int command_id,
content::WebContents* web_contents,
+ content::RenderFrameHost* render_frame_host,
const content::ContextMenuParams& params) {
MenuItem* item = GetExtensionMenuItem(command_id);
if (!item)
return;
MenuManager* manager = MenuManager::Get(browser_context_);
- manager->ExecuteCommand(browser_context_, web_contents, params, item->id());
+ manager->ExecuteCommand(browser_context_, web_contents, render_frame_host,
+ params, item->id());
}
bool ContextMenuMatcher::GetRelevantExtensionTopLevelItems(

Powered by Google App Engine
This is Rietveld 408576698