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

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

Issue 15091002: Lazily load API schemas from resource files and convert all APIs to features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: optimize and "parent" property Created 7 years, 7 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 2d20787282b4ab89a20f2fff0c67849f45753734..27dd0550f1d1ed4803018b4ae16abf1f57ce9278 100644
--- a/chrome/common/extensions/features/simple_feature.cc
+++ b/chrome/common/extensions/features/simple_feature.cc
@@ -141,6 +141,7 @@ void ParseURLPatterns(const DictionaryValue* value,
URLPatternSet* set) {
const ListValue* matches = NULL;
if (value->GetList(key, &matches)) {
+ set->ClearPatterns();
not at google - send to devlin 2013/05/23 00:09:40 is this cleanup or was there a bug?
cduvall 2013/05/24 03:13:49 There could have been a bug when I was parsing the
for (size_t i = 0; i < matches->GetSize(); ++i) {
std::string pattern;
CHECK(matches->GetString(i, &pattern));
@@ -423,6 +424,10 @@ bool SimpleFeature::IsInternal() const {
return false;
}
+bool SimpleFeature::HasParent() const {
+ return false;
+}
+
bool SimpleFeature::IsIdInWhitelist(const std::string& extension_id) const {
// Belt-and-suspenders philosophy here. We should be pretty confident by this
// point that we've validated the extension ID format, but in case something

Powered by Google App Engine
This is Rietveld 408576698