blob: 4b7b15428a094b3ab52f9241e684483cfefbfdcb (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flags.h"
#include "base/command_line.h"
#include "base/metrics/field_trial_params.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
namespace content {
bool IsFedCmAutoSigninEnabled() {
return GetFieldTrialParamByFeatureAsBool(
features::kFedCm, features::kFedCmAutoSigninFieldTrialParamName, false);
}
bool IsFedCmIdpSignoutEnabled() {
return GetFieldTrialParamByFeatureAsBool(
features::kFedCm, features::kFedCmIdpSignoutFieldTrialParamName, false);
}
bool IsFedCmManifestValidationEnabled() {
return base::FeatureList::IsEnabled(features::kFedCmManifestValidation);
}
bool IsFedCmMultipleIdentityProvidersEnabled() {
return base::FeatureList::IsEnabled(
features::kFedCmMultipleIdentityProviders);
}
bool IsFedCmIdpSigninStatusEnabled() {
return GetFieldTrialParamByFeatureAsBool(
features::kFedCm, features::kFedCmIdpSigninStatusFieldTrialParamName,
false);
}
bool IsFedCmIframeSupportEnabled() {
return GetFieldTrialParamByFeatureAsBool(
features::kFedCm, features::kFedCmIframeSupportFieldTrialParamName,
false);
}
bool IsFedCmMetricsEndpointEnabled() {
return base::FeatureList::IsEnabled(features::kFedCmMetricsEndpoint);
}
} // namespace content
|