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

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

Issue 12846011: Implement API features for the Extension API feature system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed memory leak 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.h
diff --git a/chrome/common/extensions/features/simple_feature.h b/chrome/common/extensions/features/simple_feature.h
index 5b34c6e68f3269997a79ea6284f98bc374b3f993..4d1581d41afbf6beac41b23e7740f784c200f8ba 100644
--- a/chrome/common/extensions/features/simple_feature.h
+++ b/chrome/common/extensions/features/simple_feature.h
@@ -30,8 +30,9 @@ class SimpleFeature : public Feature {
// Parses the JSON representation of a feature into the fields of this object.
// Unspecified values in the JSON are not modified in the object. This allows
- // us to implement inheritance by parsing one value after another.
- void Parse(const DictionaryValue* value);
+ // us to implement inheritance by parsing one value after another. Returns
+ // the error found, or an empty string on success.
+ virtual std::string Parse(const DictionaryValue* value);
// Returns true if the feature contains the same values as another.
bool Equals(const SimpleFeature& other) const;
« no previous file with comments | « chrome/common/extensions/features/permission_feature.cc ('k') | chrome/common/extensions/features/simple_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698