| Index: chrome/common/extensions/features/api_feature.cc
|
| diff --git a/chrome/common/extensions/features/api_feature.cc b/chrome/common/extensions/features/api_feature.cc
|
| index f6d826e2029d087a56755b4191a1090a651864b5..8203c66ea62b6be4cbf3cc6741cb8ee2db126072 100644
|
| --- a/chrome/common/extensions/features/api_feature.cc
|
| +++ b/chrome/common/extensions/features/api_feature.cc
|
| @@ -16,6 +16,10 @@ bool APIFeature::IsInternal() const {
|
| return internal_;
|
| }
|
|
|
| +bool APIFeature::HasParent() const {
|
| + return has_parent_;
|
| +}
|
| +
|
| std::string APIFeature::Parse(const DictionaryValue* value) {
|
| std::string error = SimpleFeature::Parse(value);
|
| if (!error.empty())
|
| @@ -23,6 +27,8 @@ std::string APIFeature::Parse(const DictionaryValue* value) {
|
|
|
| value->GetBoolean("internal", &internal_);
|
|
|
| + has_parent_ = value->HasKey("parent");
|
| +
|
| if (GetContexts()->empty())
|
| return name() + ": API features must specify at least one context.";
|
|
|
|
|