12345678910111213141516171819202122232425 |
- // 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.
- #include "android_webview/browser/component_updater/origin_trials_component_loader.h"
- #include <memory>
- #include "android_webview/browser/component_updater/loader_policies/origin_trials_component_loader_policy.h"
- #include "android_webview/common/aw_features.h"
- #include "base/feature_list.h"
- #include "components/component_updater/android/component_loader_policy.h"
- #include "components/component_updater/android/component_loader_policy_forward.h"
- namespace android_webview {
- void LoadOriginTrialsComponent(
- component_updater::ComponentLoaderPolicyVector& policies) {
- if (!base::FeatureList::IsEnabled(features::kWebViewOriginTrials))
- return;
- policies.push_back(std::make_unique<OriginTrialsComponentLoaderPolicy>());
- }
- } // namespace android_webview
|