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

Unified Diff: extensions/common/features/feature.cc

Issue 801603002: Add support for command line switches to Features, and as proof that it works, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixes Created 6 years 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
« no previous file with comments | « extensions/common/features/feature.h ('k') | extensions/common/features/simple_feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/features/feature.cc
diff --git a/extensions/common/features/feature.cc b/extensions/common/features/feature.cc
index e06a44a8727b122aca2f15f01f10c1b84df56759..48d384a310c0911bf64c47a403941f692008a899 100644
--- a/extensions/common/features/feature.cc
+++ b/extensions/common/features/feature.cc
@@ -11,6 +11,7 @@
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "extensions/common/extension.h"
+#include "extensions/common/manifest.h"
namespace extensions {
@@ -43,6 +44,13 @@ Feature::Availability Feature::IsAvailableToExtension(
extension->manifest_version());
}
+Feature::Availability Feature::IsAvailableToEnvironment() const {
+ return IsAvailableToManifest("", // extension_id
+ Manifest::TYPE_UNKNOWN,
+ Manifest::INVALID_LOCATION,
+ -1); // manifest_version
+}
+
Feature::Feature() : no_parent_(false) {}
Feature::~Feature() {}
« no previous file with comments | « extensions/common/features/feature.h ('k') | extensions/common/features/simple_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698