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

Unified Diff: chrome/common/extensions/api/extension_api_stub.cc

Issue 15961006: Regenerate Extensions API bindings when optional permissions change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try againto fix android 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
« no previous file with comments | « no previous file | chrome/common/extensions/features/permission_feature.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api_stub.cc
diff --git a/chrome/common/extensions/api/extension_api_stub.cc b/chrome/common/extensions/api/extension_api_stub.cc
index e739801723451be825cbc6ed5d10e76515e2d128..ab27835cd0b72258c8d2e49213739379b4b4b813 100644
--- a/chrome/common/extensions/api/extension_api_stub.cc
+++ b/chrome/common/extensions/api/extension_api_stub.cc
@@ -7,6 +7,8 @@
#include "chrome/common/extensions/api/extension_api.h"
+#include "chrome/common/extensions/features/feature.h"
+
namespace extensions {
// static
@@ -19,6 +21,24 @@ ExtensionAPI* ExtensionAPI::CreateWithDefaultConfiguration() {
return NULL;
}
+Feature::Availability ExtensionAPI::IsAvailable(
+ const std::string& api_full_name,
+ const Extension* extension,
+ Feature::Context context,
+ const GURL& url) {
+ return Feature::CreateAvailability(Feature::NOT_PRESENT, "");
+}
+
+bool ExtensionAPI::IsAnyFeatureAvailableToContext(const std::string& api_name,
+ Feature::Context context,
+ const GURL& url) {
+ return false;
+}
+
+std::set<std::string> ExtensionAPI::GetAllAPINames() {
+ return std::set<std::string>();
+}
+
bool ExtensionAPI::IsPrivileged(const std::string& full_name) {
return false;
}
« no previous file with comments | « no previous file | chrome/common/extensions/features/permission_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698