blob: 61b4d272e9104ffb329fa90335c9a5f9d4f38d9b [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/toasts/toast_features.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/time/time.h"
namespace toast_features {
// Enables refinements of the toast framework that allow for controlling the
// visibility of non-actionable toasts.
BASE_FEATURE(kToastRefinements,
"ToastRefinements",
base::FEATURE_DISABLED_BY_DEFAULT);
// Enables the link copied confirmation toast.
BASE_FEATURE(kLinkCopiedToast,
"LinkCopiedToast",
base::FEATURE_ENABLED_BY_DEFAULT);
// Enables the image copied confirmation toast.
BASE_FEATURE(kImageCopiedToast,
"ImageCopiedToast",
base::FEATURE_ENABLED_BY_DEFAULT);
// Enables the video frame copied confirmation toast.
BASE_FEATURE(kVideoFrameCopiedToast,
"VideoFrameCopiedToast",
base::FEATURE_ENABLED_BY_DEFAULT);
// Enables the link to highlight copied confirmation toast.
BASE_FEATURE(kLinkToHighlightCopiedToast,
"LinkToHighlightCopiedToast",
base::FEATURE_ENABLED_BY_DEFAULT);
// Enabled the page added to reading list confirmation toast.
BASE_FEATURE(kReadingListToast,
"ReadingListToast",
base::FEATURE_ENABLED_BY_DEFAULT);
// Migrates the lens overlay toast to the toast framework.
BASE_FEATURE(kLensOverlayToast,
"LensOverlayToast",
base::FEATURE_DISABLED_BY_DEFAULT);
// Enabled the clear browsing data confirmation toast.
BASE_FEATURE(kClearBrowsingDataToast,
"ClearBrowsingDataToast",
base::FEATURE_DISABLED_BY_DEFAULT);
// Enables the pinned tab closing notification toast.
BASE_FEATURE(kPinnedTabToastOnClose,
"PinnedTabToastOnClose",
base::FEATURE_DISABLED_BY_DEFAULT);
// static
bool IsEnabled(const base::Feature& feature) {
return base::FeatureList::IsEnabled(feature);
}
} // namespace toast_features