Index: chrome/common/content_settings_pattern_parser.cc |
diff --git a/chrome/common/content_settings_pattern_parser.cc b/chrome/common/content_settings_pattern_parser.cc |
index 437ecb1f1a9109962a18379bf22082d3389b60a8..e54834a3cbba6a6120964d29a5d8c51ba8bfb39d 100644 |
--- a/chrome/common/content_settings_pattern_parser.cc |
+++ b/chrome/common/content_settings_pattern_parser.cc |
@@ -140,14 +140,8 @@ void PatternParser::Parse(const std::string& pattern_spec, |
builder->WithDomainWildcard(); |
} else if (StartsWithASCII(host, kDomainWildcard, true)) { |
host = host.substr(kDomainWildcardLength); |
- // If the host still contains a wildcard symbol then it is invalid. |
- if (host.find(kHostWildcard) != std::string::npos) { |
- builder->Invalid(); |
- return; |
- } else { |
- builder->WithDomainWildcard(); |
- builder->WithHost(host); |
- } |
+ builder->WithDomainWildcard(); |
+ builder->WithHost(host); |
} else { |
// If the host contains a wildcard symbol then it is invalid. |
if (host.find(kHostWildcard) != std::string::npos) { |