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

Unified Diff: chrome/common/extensions/user_script.cc

Issue 7229012: Use extension match pattern syntax in content settings extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize port Created 9 years, 6 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/common/extensions/user_script.cc
diff --git a/chrome/common/extensions/user_script.cc b/chrome/common/extensions/user_script.cc
index 91fbb850399cb50cf580f55913fa819671225a59..17aadbc1c74f408c90c7d3bd63e8a3c793650b7e 100644
--- a/chrome/common/extensions/user_script.cc
+++ b/chrome/common/extensions/user_script.cc
@@ -193,7 +193,7 @@ void UserScript::Unpickle(const ::Pickle& pickle, void** iter) {
if (!had_file_scheme)
pattern.set_valid_schemes(valid_schemes | URLPattern::SCHEME_FILE);
CHECK(URLPattern::PARSE_SUCCESS ==
- pattern.Parse(pattern_str, URLPattern::PARSE_LENIENT));
+ pattern.Parse(pattern_str, URLPattern::IGNORE_PORTS));
if (!had_file_scheme)
pattern.set_valid_schemes(valid_schemes);

Powered by Google App Engine
This is Rietveld 408576698