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

Unified Diff: extensions/common/extension_api_stub.cc

Issue 673663004: Android: Do not build any extensions code except for extensions_constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zoom_controller
Patch Set: fix merge conflict Created 6 years, 2 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 | « extensions/common/extension.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_api_stub.cc
diff --git a/extensions/common/extension_api_stub.cc b/extensions/common/extension_api_stub.cc
deleted file mode 100644
index 4b44f97358c0519eef490d1317299f43b47c332a..0000000000000000000000000000000000000000
--- a/extensions/common/extension_api_stub.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Stub methods to be used when extensions are disabled
-// i.e. ENABLE_EXTENSIONS is not defined
-
-#include "extensions/common/extension_api.h"
-
-#include "extensions/common/features/feature.h"
-#include "url/gurl.h"
-
-namespace extensions {
-
-// static
-ExtensionAPI* ExtensionAPI::GetSharedInstance() {
- return NULL;
-}
-
-// static
-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 Feature& api,
- const Extension* extension,
- Feature::Context context,
- const GURL& url) {
- return false;
-}
-
-bool ExtensionAPI::IsAvailableInUntrustedContext(const std::string& full_name,
- const Extension* extension) {
- return false;
-}
-
-bool ExtensionAPI::IsAvailableToWebUI(const std::string& name,
- const GURL& url) {
- return false;
-}
-
-const base::DictionaryValue* ExtensionAPI::GetSchema(
- const std::string& full_name) {
- return NULL;
-}
-
-Feature* ExtensionAPI::GetFeatureDependency(const std::string& name) {
- return NULL;
-}
-
-} // namespace extensions
« no previous file with comments | « extensions/common/extension.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698