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

Unified Diff: chrome/common/extensions/features/simple_feature.cc

Issue 13604005: Prevent chrome.app JSON schema from loading on every page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/features/simple_feature.cc
diff --git a/chrome/common/extensions/features/simple_feature.cc b/chrome/common/extensions/features/simple_feature.cc
index 13c8573edcdf94ee6c4aaa81db74d4b1cd18306d..46957f1afe4a15b88cf88c6fdcfbdfda00a183fc 100644
--- a/chrome/common/extensions/features/simple_feature.cc
+++ b/chrome/common/extensions/features/simple_feature.cc
@@ -143,7 +143,8 @@ void ParseURLPatterns(const DictionaryValue* value,
for (size_t i = 0; i < matches->GetSize(); ++i) {
std::string pattern;
CHECK(matches->GetString(i, &pattern));
- set->AddPattern(URLPattern(URLPattern::SCHEME_ALL, pattern));
+ set->AddPattern(
+ URLPattern(UserScript::ValidUserScriptSchemes(), pattern));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698