blob: f585178bf6d1dc67a5c6753e6c87ffd282d6dd67 [file] [log] [blame]
// Copyright 2016 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 COMPONENTS_PAYMENTS_CORE_PAYMENTS_EXPERIMENTAL_FEATURES_H_
#define COMPONENTS_PAYMENTS_CORE_PAYMENTS_EXPERIMENTAL_FEATURES_H_
namespace base {
struct Feature;
} // namespace base
namespace payments {
class PaymentsExperimentalFeatures {
public:
PaymentsExperimentalFeatures() = delete;
PaymentsExperimentalFeatures(const PaymentsExperimentalFeatures&) = delete;
PaymentsExperimentalFeatures& operator=(const PaymentsExperimentalFeatures&) =
delete;
// Utility wrapper around base::FeatureList::IsEnabled(). Returns true if
// either |feature| or payments::features::kWebPaymentsExperimentalFeatures is
// enabled.
static bool IsEnabled(const base::Feature& feature);
};
} // namespace payments
#endif // COMPONENTS_PAYMENTS_CORE_PAYMENTS_EXPERIMENTAL_FEATURES_H_