blob: ad4df1a4b461b269f0e6bf7f6a601bd5c33d7e2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2021 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_CONTENT_CREATION_NOTES_CORE_NOTE_FEATURES_H_
#define COMPONENTS_CONTENT_CREATION_NOTES_CORE_NOTE_FEATURES_H_
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
namespace content_creation {
// Main feature for the Web Notes Stylize project.
extern const base::Feature kWebNotesStylizeEnabled;
// Feature parameter for Web Notes Stylize which controls whether the ordering
// of templates is randomized for each client or not.
extern const base::FeatureParam<bool> kRandomizeOrderParam;
// Feature for publishing Web Notes to the server.
extern const base::Feature kWebNotesPublish;
// Returns true if the Web Notes Stylize feature is enabled.
bool IsStylizeEnabled();
// Returns true if the order randomization parameter is set to true for the Web
// Notes Stylize feature.
bool IsRandomizeOrderEnabled();
// Returns whether the Web Notes Publish feature is enabled.
bool IsPublishEnabled();
} // namespace content_creation
#endif // COMPONENTS_CONTENT_CREATION_NOTES_CORE_NOTE_FEATURES_H_
|