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

Unified Diff: chrome/browser/extensions/extension_menu_manager.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/extensions/extension_menu_manager.cc
diff --git a/chrome/browser/extensions/extension_menu_manager.cc b/chrome/browser/extensions/extension_menu_manager.cc
index 6e8736422c00506bdb7fc9b83a9ef6e692f4ce1a..71f24b7dd84843b0b5404d1ad9c9f05665c1af23 100644
--- a/chrome/browser/extensions/extension_menu_manager.cc
+++ b/chrome/browser/extensions/extension_menu_manager.cc
@@ -92,9 +92,6 @@ void ExtensionMenuItem::AddChild(ExtensionMenuItem* item) {
children_.push_back(item);
}
-const int ExtensionMenuManager::kAllowedSchemes =
- URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS;
-
ExtensionMenuManager::ExtensionMenuManager() {
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED,
NotificationService::AllSources());
@@ -469,12 +466,6 @@ const SkBitmap& ExtensionMenuManager::GetIconForExtension(
return icon_manager_.GetIcon(extension_id);
}
-// static
-bool ExtensionMenuManager::HasAllowedScheme(const GURL& url) {
- URLPattern pattern(kAllowedSchemes);
- return pattern.SetScheme(url.scheme());
-}
-
ExtensionMenuItem::Id::Id()
: profile(NULL), uid(0) {
}
« no previous file with comments | « chrome/browser/extensions/extension_menu_manager.h ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698