Move kRestrictGoogleWebVisibility into variations_features.h.
Doing this allows us to avoid the below DCHECK encountered when running
the status quo tests. Having variations_features.h allows us to avoid
splitting the variations static_library into two because
variations_features can have its own target in the BUILD file.
...FATAL:feature_list.cc(472)]
Check failed: CheckFeatureIdentity(feature). RestrictGoogleWebVisibility
Bug: 1094303
Change-Id: I9ee3f02d8f3cde7398e759fe54b19cdc9ebb2271
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2410554
Commit-Queue: Caitlin Fischer <[email protected]>
Reviewed-by: Alexei Svitkine <[email protected]>
Cr-Commit-Position: refs/heads/master@{#808032}
diff --git a/components/variations/variations_features.cc b/components/variations/variations_features.cc
new file mode 100644
index 0000000..3a11276
--- /dev/null
+++ b/components/variations/variations_features.cc
@@ -0,0 +1,15 @@
+// Copyright 2020 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 "components/variations/variations_features.h"
+
+namespace variations {
+
+namespace internal {
+
+const base::Feature kRestrictGoogleWebVisibility{
+ "RestrictGoogleWebVisibility", base::FEATURE_DISABLED_BY_DEFAULT};
+
+} // namespace internal
+} // namespace variations