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

Unified Diff: chrome/browser/extensions/extension_context_menu_api.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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_menu_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_context_menu_api.cc
diff --git a/chrome/browser/extensions/extension_context_menu_api.cc b/chrome/browser/extensions/extension_context_menu_api.cc
index d5f1e01326b317d8b3572015dbbd220ef93c8e31..db91c4d54129e5bef620aefb1834abd5e6859f49 100644
--- a/chrome/browser/extensions/extension_context_menu_api.cc
+++ b/chrome/browser/extensions/extension_context_menu_api.cc
@@ -139,7 +139,7 @@ bool ExtensionContextMenuFunction::ParseURLPatterns(
if (!(*i)->GetAsString(&tmp))
return false;
- URLPattern pattern(ExtensionMenuManager::kAllowedSchemes);
+ URLPattern pattern(URLPattern::SCHEME_ALL);
// TODO(skerner): Consider enabling strict pattern parsing
// if this extension's location indicates that it is under development.
if (URLPattern::PARSE_SUCCESS != pattern.Parse(tmp,
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_menu_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698