| Index: chrome/browser/extensions/extension_menu_manager.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_menu_manager.cc (revision 52866)
|
| +++ chrome/browser/extensions/extension_menu_manager.cc (working copy)
|
| @@ -96,6 +96,9 @@
|
| children_.push_back(item);
|
| }
|
|
|
| +const int ExtensionMenuManager::kAllowedSchemes =
|
| + URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS;
|
| +
|
| ExtensionMenuManager::ExtensionMenuManager() {
|
| registrar_.Add(this, NotificationType::EXTENSION_UNLOADED,
|
| NotificationService::AllSources());
|
| @@ -446,3 +449,9 @@
|
| const std::string& extension_id) {
|
| return icon_manager_.GetIcon(extension_id);
|
| }
|
| +
|
| +// static
|
| +bool ExtensionMenuManager::HasAllowedScheme(const GURL& url) {
|
| + URLPattern pattern(kAllowedSchemes);
|
| + return pattern.SetScheme(url.scheme());
|
| +}
|
|
|