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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 7258009: Remove scheme restriction for extension context menu items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing last nit Created 9 years, 5 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/tab_contents/render_view_context_menu.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index eac5c8b32fe1ce2eac46babbf4aabd907280dbc1..0121bcd8d51a69f3df1968ec9f7506359a0e54cf 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -441,9 +441,6 @@ void RenderViewContextMenu::AppendAllExtensionItems() {
if (!service)
return; // In unit-tests, we may not have an ExtensionService.
ExtensionMenuManager* menu_manager = service->menu_manager();
- const GURL& document_url = GetDocumentURL(params_);
- if (!menu_manager->HasAllowedScheme(document_url))
- return;
// Get a list of extension id's that have context menu items, and sort it by
// the extension's name.
« no previous file with comments | « chrome/browser/extensions/extension_menu_manager.cc ('k') | chrome/common/extensions/docs/contextMenus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698