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

Unified Diff: chrome/browser/extensions/extension_menu_manager.h

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.h
diff --git a/chrome/browser/extensions/extension_menu_manager.h b/chrome/browser/extensions/extension_menu_manager.h
index 01471c76852436eda8fdb64c7e1f9b0724aece8e..0472225ae58707961f222804a74624179a3309be 100644
--- a/chrome/browser/extensions/extension_menu_manager.h
+++ b/chrome/browser/extensions/extension_menu_manager.h
@@ -193,10 +193,6 @@ class ExtensionMenuItem {
// This class keeps track of menu items added by extensions.
class ExtensionMenuManager : public NotificationObserver {
public:
- // A bitmask of values from URLPattern::SchemeMasks indicating the schemes
- // of pages where we'll show extension menu items.
- static const int kAllowedSchemes;
-
ExtensionMenuManager();
virtual ~ExtensionMenuManager();
@@ -253,10 +249,6 @@ class ExtensionMenuManager : public NotificationObserver {
virtual void Observe(int type, const NotificationSource& source,
const NotificationDetails& details);
- // Returns true if |url| has an allowed scheme for extension context menu
- // items. This checks against kAllowedSchemes.
- static bool HasAllowedScheme(const GURL& url);
-
private:
FRIEND_TEST_ALL_PREFIXES(ExtensionMenuManagerTest, DeleteParent);
FRIEND_TEST_ALL_PREFIXES(ExtensionMenuManagerTest, RemoveOneByOne);
« no previous file with comments | « chrome/browser/extensions/extension_context_menu_api.cc ('k') | chrome/browser/extensions/extension_menu_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698