Index: chrome/common/extensions/url_pattern.cc |
diff --git a/chrome/common/extensions/url_pattern.cc b/chrome/common/extensions/url_pattern.cc |
index b6e09b78dd91b40b8ad382ab8c519dd3f88c6452..26fbd4caec9303f6512dbe44f55a1508a4f0c74f 100644 |
--- a/chrome/common/extensions/url_pattern.cc |
+++ b/chrome/common/extensions/url_pattern.cc |
@@ -17,6 +17,7 @@ |
static const char* kValidSchemes[] = { |
chrome::kHttpScheme, |
chrome::kHttpsScheme, |
+ chrome::kHttpsvScheme, |
chrome::kFileScheme, |
chrome::kFtpScheme, |
chrome::kChromeUIScheme, |
@@ -25,6 +26,7 @@ static const char* kValidSchemes[] = { |
static const int kValidSchemeMasks[] = { |
URLPattern::SCHEME_HTTP, |
URLPattern::SCHEME_HTTPS, |
+ URLPattern::SCHEME_HTTPSV, |
URLPattern::SCHEME_FILE, |
URLPattern::SCHEME_FTP, |
URLPattern::SCHEME_CHROMEUI, |
@@ -148,7 +150,7 @@ URLPattern::ParseResult URLPattern::Parse(const std::string& pattern) { |
bool URLPattern::SetScheme(const std::string& scheme) { |
scheme_ = scheme; |
if (scheme_ == "*") { |
- valid_schemes_ &= (SCHEME_HTTP | SCHEME_HTTPS); |
+ valid_schemes_ &= (SCHEME_HTTP | SCHEME_HTTPS | SCHEME_HTTPSV); |
} else if (!IsValidScheme(scheme_)) { |
return false; |
} |