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

Unified Diff: chrome/common/extensions/features/chrome_channel_feature_filter.h

Issue 2137463003: [Extensions] Move Feature channel code into //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test fix Created 4 years, 5 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/chrome_channel_feature_filter.h
diff --git a/chrome/common/extensions/features/chrome_channel_feature_filter.h b/chrome/common/extensions/features/chrome_channel_feature_filter.h
deleted file mode 100644
index bf1c05dc17d0e0a2e455faaa67a3dad250fdf415..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/features/chrome_channel_feature_filter.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef CHROME_COMMON_EXTENSIONS_FEATURES_CHROME_CHANNEL_FEATURE_FILTER_H_
-#define CHROME_COMMON_EXTENSIONS_FEATURES_CHROME_CHANNEL_FEATURE_FILTER_H_
-
-#include "extensions/common/features/simple_feature_filter.h"
-
-namespace version_info {
-enum class Channel;
-}
-
-namespace extensions {
-
-// This filter parses a "channel" key from feature value data and makes features
-// unavailable if they aren't stable enough for the current channel.
-class ChromeChannelFeatureFilter : public SimpleFeatureFilter {
- public:
- explicit ChromeChannelFeatureFilter(SimpleFeature* feature);
- ~ChromeChannelFeatureFilter() override;
-
- // SimpleFeatureFilter implementation.
- std::string Parse(const base::DictionaryValue* value) override;
- Feature::Availability IsAvailableToManifest(
- const std::string& extension_id,
- Manifest::Type type,
- Manifest::Location location,
- int manifest_version,
- Feature::Platform platform) const override;
-
- private:
- bool channel_has_been_set_;
- version_info::Channel channel_;
-};
-
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_FEATURES_CHROME_CHANNEL_FEATURE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698