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

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

Issue 50743005: Moved extension_api to src/extensions/common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops Created 7 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
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
deleted file mode 100644
index add1f97468990b3ba5668ed97252b754cf5f75c1..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/api/extension_api_stub.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 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 "chrome/common/extensions/api/extension_api.h"
-
-#include "extensions/common/features/feature.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 std::string& api_name,
- const Extension* extension,
- Feature::Context context,
- const GURL& url) {
- return false;
-}
-
-bool ExtensionAPI::IsPrivileged(const std::string& full_name) {
- return false;
-}
-
-const base::DictionaryValue* ExtensionAPI::GetSchema(
- const std::string& full_name) {
- return NULL;
-}
-
-} // namespace extensions
« no previous file with comments | « chrome/common/extensions/api/extension_api.cc ('k') | chrome/common/extensions/api/extension_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698