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

Unified Diff: chrome/common/extensions/features/api_feature.cc

Issue 224163002: Move core features code to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move tests Created 6 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
Index: chrome/common/extensions/features/api_feature.cc
diff --git a/chrome/common/extensions/features/api_feature.cc b/chrome/common/extensions/features/api_feature.cc
deleted file mode 100644
index edb9317b840f8eff3a55bbe3fe236f4e224f2f52..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/features/api_feature.cc
+++ /dev/null
@@ -1,37 +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/features/api_feature.h"
-
-namespace extensions {
-
-APIFeature::APIFeature()
- : internal_(false), blocked_in_service_worker_(false) {}
-
-APIFeature::~APIFeature() {
-}
-
-bool APIFeature::IsInternal() const {
- return internal_;
-}
-
-bool APIFeature::IsBlockedInServiceWorker() const {
- return blocked_in_service_worker_;
-}
-
-std::string APIFeature::Parse(const base::DictionaryValue* value) {
- std::string error = SimpleFeature::Parse(value);
- if (!error.empty())
- return error;
-
- value->GetBoolean("internal", &internal_);
- value->GetBoolean("blocked_in_service_worker", &blocked_in_service_worker_);
-
- if (GetContexts()->empty())
- return name() + ": API features must specify at least one context.";
-
- return std::string();
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698