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

Unified Diff: chrome/common/extensions/features/complex_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: more fixes Created 7 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/features/complex_feature.cc
diff --git a/chrome/common/extensions/features/complex_feature.cc b/chrome/common/extensions/features/complex_feature.cc
index 09eb426daa738b173774b134e3c7349ea2cdd35f..bc0c2e9dc1efce7cbd7f47610c15d20ab62376c3 100644
--- a/chrome/common/extensions/features/complex_feature.cc
+++ b/chrome/common/extensions/features/complex_feature.cc
@@ -72,6 +72,18 @@ bool ComplexFeature::IsInternal() const {
return false;
}
+bool ComplexFeature::HasParent() const {
+ for (FeatureList::const_iterator it = features_.begin();
+ it != features_.end(); ++it) {
+ if ((*it)->HasParent())
+ return true;
+ }
+ return false;
+}
+
+void ComplexFeature::SetHasParent(bool has_parent) {
+}
+
std::string ComplexFeature::GetAvailabilityMessage(AvailabilityResult result,
Manifest::Type type,
const GURL& url) const {

Powered by Google App Engine
This is Rietveld 408576698