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
content / public / common / content_switch_dependent_feature_overrides.h [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_COMMON_CONTENT_SWITCH_DEPENDENT_FEATURE_OVERRIDES_H_
#define CONTENT_PUBLIC_COMMON_CONTENT_SWITCH_DEPENDENT_FEATURE_OVERRIDES_H_
#include <vector>
#include "base/command_line.h"
#include "base/feature_list.h"
#include "content/common/content_export.h"
namespace content {
// Returns a list of extra switch-dependent feature overrides to be applied
// during FeatureList initialization.
// TODO(chlily): Test more to understand whether this needs to be called for
// child processes, or if it's sufficient to just call this for the browser
// process and have that state propagate to child processes.
CONTENT_EXPORT std::vector<base::FeatureList::FeatureOverrideInfo>
GetSwitchDependentFeatureOverrides(const base::CommandLine& command_line);
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_CONTENT_SWITCH_DEPENDENT_FEATURE_OVERRIDES_H_