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

Unified Diff: chrome/common/extensions/permission_feature.cc

Issue 9978012: Revert 130697 - Reland r130462: Implement FeatureProvider for ExtensionAPI." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « chrome/common/extensions/permission_feature.h ('k') | chrome/common/extensions/simple_feature_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/permission_feature.cc
===================================================================
--- chrome/common/extensions/permission_feature.cc (revision 130700)
+++ chrome/common/extensions/permission_feature.cc (working copy)
@@ -1,33 +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.
-
-#include "chrome/common/extensions/permission_feature.h"
-
-#include "chrome/common/extensions/extension_permission_set.h"
-
-namespace extensions {
-
-PermissionFeature::PermissionFeature() {
-}
-
-PermissionFeature::~PermissionFeature() {
-}
-
-Feature::Availability PermissionFeature::IsAvailableToContext(
- const Extension* extension,
- Feature::Context context,
- Feature::Platform platform) const {
- Availability availability = Feature::IsAvailableToContext(extension,
- context,
- platform);
- if (availability != IS_AVAILABLE)
- return availability;
-
- if (!extension->HasAPIPermission(name()))
- return NOT_PRESENT;
-
- return IS_AVAILABLE;
-}
-
-} // namespace
« no previous file with comments | « chrome/common/extensions/permission_feature.h ('k') | chrome/common/extensions/simple_feature_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698