| Index: components/component_updater/configurator_impl.cc
|
| diff --git a/components/component_updater/configurator_impl.cc b/components/component_updater/configurator_impl.cc
|
| index 1da87add716765eaa3a4104ea808b6ae15c37246..822476a4f8134a04f5e3fc50eba03bc2d21c7a83 100644
|
| --- a/components/component_updater/configurator_impl.cc
|
| +++ b/components/component_updater/configurator_impl.cc
|
| @@ -9,6 +9,7 @@
|
| #include <algorithm>
|
|
|
| #include "base/command_line.h"
|
| +#include "base/feature_list.h"
|
| #include "base/strings/string_split.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/version.h"
|
| @@ -54,6 +55,10 @@ const char kSwitchDisableDeltaUpdates[] = "disable-delta-updates";
|
| const char kSwitchDisableBackgroundDownloads[] = "disable-background-downloads";
|
| #endif // defined(OS_WIN)
|
|
|
| +const base::Feature kAlternateComponentUrls {
|
| + "AlternateComponentUrls", base::FEATURE_DISABLED_BY_DEFAULT
|
| +};
|
| +
|
| // Returns true if and only if |test| is contained in |vec|.
|
| bool HasSwitchValue(const std::vector<std::string>& vec, const char* test) {
|
| if (vec.empty())
|
| @@ -148,8 +153,14 @@ std::vector<GURL> ConfiguratorImpl::UpdateUrl() const {
|
| return urls;
|
| }
|
|
|
| - urls.push_back(GURL(kUpdaterDefaultUrl));
|
| - urls.push_back(GURL(kUpdaterFallbackUrl));
|
| + if (base::FeatureList::IsEnabled(kAlternateComponentUrls)) {
|
| + urls.push_back(GURL(kUpdaterDefaultUrlAlt));
|
| + urls.push_back(GURL(kUpdaterFallbackUrlAlt));
|
| + } else {
|
| + urls.push_back(GURL(kUpdaterDefaultUrl));
|
| + urls.push_back(GURL(kUpdaterFallbackUrl));
|
| + }
|
| +
|
| if (require_encryption_)
|
| update_client::RemoveUnsecureUrls(&urls);
|
|
|
|
|