forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout_flags.cc
11747 lines (10517 loc) · 564 KB
/
about_flags.cc
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Instructions for adding new entries to this file:
// https://chromium.googlesource.com/chromium/src/+/main/docs/how_to_add_your_feature_flag.md#step-2_adding-the-feature-flag-to-the-chrome_flags-ui
#include "chrome/browser/about_flags.h"
#include <iterator>
#include <map>
#include <memory>
#include <set>
#include <utility>
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/i18n/base_i18n_switches.h"
#include "base/memory/singleton.h"
#include "base/metrics/histogram_functions.h"
#include "base/no_destructor.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/task_features.h"
#include "base/values.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "cc/base/features.h"
#include "cc/base/switches.h"
#include "chrome/browser/apps/app_discovery_service/app_discovery_service.h"
#include "chrome/browser/apps/link_capturing/link_capturing_features.h"
#include "chrome/browser/browser_features.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/companion/core/features.h"
#include "chrome/browser/feature_guide/notifications/feature_notification_guide_service.h"
#include "chrome/browser/file_system_access/file_system_access_features.h"
#include "chrome/browser/flag_descriptions.h"
#include "chrome/browser/ip_protection/ip_protection_switches.h"
#include "chrome/browser/login_detection/login_detection_util.h"
#include "chrome/browser/media/router/discovery/access_code/access_code_cast_constants.h"
#include "chrome/browser/media/router/discovery/access_code/access_code_cast_feature.h"
#include "chrome/browser/navigation_predictor/navigation_predictor_features.h"
#include "chrome/browser/navigation_predictor/search_engine_preconnector.h"
#include "chrome/browser/net/stub_resolver_config_reader.h"
#include "chrome/browser/net/system_network_context_manager.h"
#include "chrome/browser/notifications/scheduler/public/features.h"
#include "chrome/browser/page_info/page_info_features.h"
#include "chrome/browser/permissions/notifications_permission_revocation_config.h"
#include "chrome/browser/permissions/quiet_notification_permission_ui_config.h"
#include "chrome/browser/predictors/loading_predictor_config.h"
#include "chrome/browser/preloading/prefetch/search_prefetch/field_trial_settings.h"
#include "chrome/browser/preloading/preloading_features.h"
#include "chrome/browser/resource_coordinator/tab_manager_features.h"
#include "chrome/browser/share/share_features.h"
#include "chrome/browser/sharing/features.h"
#include "chrome/browser/sharing_hub/sharing_hub_features.h"
#include "chrome/browser/signin/signin_features.h"
#include "chrome/browser/site_isolation/about_flags.h"
#include "chrome/browser/tpcd/experiment/tpcd_experiment_features.h"
#include "chrome/browser/ui/browser_navigator_params.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/unexpire_flags.h"
#include "chrome/browser/unexpire_flags_gen.h"
#include "chrome/browser/webauthn/webauthn_switches.h"
#include "chrome/common/buildflags.h"
#include "chrome/common/channel_info.h"
#include "chrome/common/chrome_content_client.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/companion/visual_query/features.h"
#include "components/assist_ranker/predictor_config_definitions.h"
#include "components/autofill/core/browser/autofill_experiments.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/autofill/core/common/autofill_switches.h"
#include "components/autofill/core/common/autofill_util.h"
#include "components/browser_sync/browser_sync_switches.h"
#include "components/browsing_data/core/features.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/flag_descriptions.h"
#include "components/component_updater/component_updater_command_line_config_policy.h"
#include "components/component_updater/component_updater_switches.h"
#include "components/compose/buildflags.h"
#include "components/compose/core/browser/compose_features.h"
#include "components/content_settings/core/common/features.h"
#include "components/contextual_search/core/browser/contextual_search_field_trial.h"
#include "components/contextual_search/core/browser/public.h"
#include "components/dom_distiller/core/dom_distiller_features.h"
#include "components/dom_distiller/core/dom_distiller_switches.h"
#include "components/download/public/common/download_features.h"
#include "components/error_page/common/error_page_switches.h"
#include "components/feature_engagement/public/feature_constants.h"
#include "components/feature_engagement/public/feature_list.h"
#include "components/feed/feed_feature_list.h"
#include "components/flags_ui/feature_entry.h"
#include "components/flags_ui/feature_entry_macros.h"
#include "components/flags_ui/flags_state.h"
#include "components/flags_ui/flags_storage.h"
#include "components/flags_ui/flags_ui_metrics.h"
#include "components/flags_ui/flags_ui_switches.h"
#include "components/flags_ui/pref_service_flags_storage.h"
#include "components/heavy_ad_intervention/heavy_ad_features.h"
#include "components/history/core/browser/features.h"
#include "components/history_clusters/core/config.h"
#include "components/history_clusters/core/features.h"
#include "components/history_clusters/core/on_device_clustering_features.h"
#include "components/invalidation/impl/invalidation_switches.h"
#include "components/language/core/common/language_experiments.h"
#include "components/lens/buildflags.h"
#include "components/lens/lens_features.h"
#include "components/manta/features.h"
#include "components/mirroring/service/mirroring_features.h"
#include "components/nacl/common/buildflags.h"
#include "components/nacl/common/nacl_switches.h"
#include "components/network_session_configurator/common/network_features.h"
#include "components/network_session_configurator/common/network_switches.h"
#include "components/no_state_prefetch/browser/no_state_prefetch_field_trial.h"
#include "components/ntp_tiles/features.h"
#include "components/offline_pages/core/offline_page_feature.h"
#include "components/omnibox/browser/omnibox_feature_configs.h"
#include "components/omnibox/browser/omnibox_field_trial.h"
#include "components/omnibox/common/omnibox_features.h"
#include "components/open_from_clipboard/clipboard_recent_content_features.h"
#include "components/optimization_guide/core/model_execution/model_execution_features.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
#include "components/optimization_guide/core/optimization_guide_switches.h"
#include "components/page_image_service/features.h"
#include "components/page_info/core/features.h"
#include "components/paint_preview/buildflags/buildflags.h"
#include "components/paint_preview/features/features.h"
#include "components/password_manager/core/browser/features/password_features.h"
#include "components/password_manager/core/common/password_manager_features.h"
#include "components/payments/core/features.h"
#include "components/performance_manager/public/features.h"
#include "components/permissions/features.h"
#include "components/policy/core/common/features.h"
#include "components/power_bookmarks/core/flag_descriptions.h"
#include "components/power_bookmarks/core/power_bookmark_features.h"
#include "components/privacy_sandbox/privacy_sandbox_features.h"
#include "components/query_tiles/switches.h"
#include "components/reading_list/features/reading_list_switches.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/search/ntp_features.h"
#include "components/search_engines/search_engines_switches.h"
#include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
#include "components/security_state/core/security_state.h"
#include "components/segmentation_platform/public/features.h"
#include "components/send_tab_to_self/features.h"
#include "components/services/heap_profiling/public/cpp/switches.h"
#include "components/services/storage/public/cpp/buckets/bucket_info.h"
#include "components/shared_highlighting/core/common/shared_highlighting_features.h"
#include "components/signin/core/browser/dice_account_reconcilor_delegate.h"
#include "components/signin/public/base/signin_buildflags.h"
#include "components/signin/public/base/signin_switches.h"
#include "components/site_isolation/features.h"
#include "components/spellcheck/common/spellcheck_features.h"
#include "components/spellcheck/spellcheck_buildflags.h"
#include "components/supervised_user/core/common/buildflags.h"
#include "components/sync/base/command_line_switches.h"
#include "components/sync/base/features.h"
#include "components/tracing/common/tracing_switches.h"
#include "components/translate/core/browser/translate_prefs.h"
#include "components/translate/core/browser/translate_ranker_impl.h"
#include "components/translate/core/common/translate_util.h"
#include "components/trusted_vault/features.h"
#include "components/ui_devtools/switches.h"
#include "components/variations/variations_switches.h"
#include "components/version_info/version_info.h"
#include "components/viz/common/features.h"
#include "components/viz/common/switches.h"
#include "components/webapps/browser/features.h"
#include "components/webapps/common/switches.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "device/base/features.h"
#include "device/bluetooth/bluez/bluez_features.h"
#include "device/bluetooth/chromeos_platform_features.h"
#include "device/bluetooth/floss/floss_features.h"
#include "device/fido/features.h"
#include "device/gamepad/public/cpp/gamepad_features.h"
#include "device/vr/buildflags/buildflags.h"
#include "extensions/buildflags/buildflags.h"
#include "flag_descriptions.h"
#include "gpu/config/gpu_finch_features.h"
#include "gpu/config/gpu_switches.h"
#include "media/audio/audio_features.h"
#include "media/base/media_switches.h"
#include "media/capture/capture_switches.h"
#include "media/media_buildflags.h"
#include "media/midi/midi_switches.h"
#include "media/webrtc/webrtc_features.h"
#include "mojo/core/embedder/features.h"
#include "net/base/features.h"
#include "net/net_buildflags.h"
#include "net/nqe/effective_connection_type.h"
#include "net/nqe/network_quality_estimator_params.h"
#include "net/websockets/websocket_basic_handshake_stream.h"
#include "pdf/buildflags.h"
#include "ppapi/buildflags/buildflags.h"
#include "printing/buildflags/buildflags.h"
#include "sandbox/policy/features.h"
#include "sandbox/policy/switches.h"
#include "services/device/public/cpp/device_features.h"
#include "services/media_session/public/cpp/features.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/cpp/network_switches.h"
#include "services/tracing/public/cpp/tracing_features.h"
#include "storage/browser/quota/quota_features.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/features_generated.h"
#include "third_party/blink/public/common/forcedark/forcedark_switches.h"
#include "third_party/blink/public/common/switches.h"
#include "ui/accessibility/accessibility_features.h"
#include "ui/accessibility/accessibility_switches.h"
#include "ui/base/ui_base_features.h"
#include "ui/base/ui_base_switches.h"
#include "ui/compositor/compositor_switches.h"
#include "ui/display/display_features.h"
#include "ui/display/display_switches.h"
#include "ui/events/blink/blink_features.h"
#include "ui/events/event_switches.h"
#include "ui/events/events_features.h"
#include "ui/gfx/switches.h"
#include "ui/gl/buildflags.h"
#include "ui/gl/gl_features.h"
#include "ui/gl/gl_switches.h"
#include "ui/native_theme/native_theme_features.h"
#include "ui/ui_features.h"
#include "url/url_features.h"
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#include "base/allocator/buildflags.h"
#endif
#if BUILDFLAG(IS_CHROMEOS)
#include "base/process/process.h"
#include "chromeos/constants/chromeos_features.h"
#endif
#if BUILDFLAG(IS_ANDROID)
#include "chrome/browser/flags/android/chrome_feature_list.h"
#include "chrome/browser/notifications/chime/android/features.h"
#include "chrome/browser/push_messaging/push_messaging_features.h"
#include "components/browser_ui/photo_picker/android/features.h"
#include "components/browser_ui/site_settings/android/features.h"
#include "components/content_creation/notes/core/note_features.h"
#include "components/external_intents/android/external_intents_features.h"
#include "components/messages/android/messages_feature.h"
#include "components/translate/content/android/translate_message.h"
#include "ui/android/ui_android_features.h"
#else // BUILDFLAG(IS_ANDROID)
#include "chrome/browser/media/router/discovery/access_code/access_code_cast_sink_service.h"
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/browser/web_applications/preinstalled_app_install_features.h"
#include "components/user_notes/user_notes_features.h"
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/components/arc/arc_features.h"
#include "ash/components/arc/arc_util.h"
#include "ash/constants/ash_features.h"
#include "ash/constants/ash_switches.h"
#include "ash/public/cpp/app_list/app_list_features.h"
#include "ash/public/cpp/keyboard/keyboard_switches.h"
#include "chrome/browser/ash/app_list/search/search_features.h"
#include "chrome/browser/ash/crosapi/browser_manager.h"
#include "chrome/browser/ash/crosapi/browser_util.h"
#include "chrome/browser/ash/crostini/crostini_util.h"
#include "chrome/browser/ash/file_suggest/item_suggest_cache.h"
#include "chrome/browser/ash/ownership/owner_settings_service_ash.h"
#include "chrome/browser/ash/ownership/owner_settings_service_ash_factory.h"
#include "chrome/browser/ash/policy/reporting/metrics_reporting/metric_reporting_manager.h"
#include "chrome/browser/ash/settings/about_flags.h"
#include "chrome/browser/component_updater/cros_component_installer_chromeos.h"
#include "chrome/browser/nearby_sharing/common/nearby_share_features.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/webui_url_constants.h"
#include "chromeos/ash/components/assistant/buildflags.h"
#include "chromeos/ash/components/login/hibernate/hibernate_manager.h"
#include "chromeos/ash/components/memory/swap_configuration.h"
#include "chromeos/ash/components/standalone_browser/lacros_availability.h"
#include "chromeos/ash/components/standalone_browser/standalone_browser_features.h"
#include "chromeos/ash/services/assistant/public/cpp/features.h"
#include "components/app_restore/features.h"
#include "components/metrics/structured/structured_metrics_features.h" // nogncheck
#include "media/capture/video/chromeos/video_capture_features_chromeos.h"
#include "remoting/host/chromeos/features.h"
#include "third_party/cros_system_api/switches/chrome_switches.h"
#include "ui/events/ozone/features.h"
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#include "base/i18n/icu_mergeable_data_file.h"
#include "chrome/browser/lacros/lacros_url_handling.h"
#include "chrome/common/webui_url_constants.h"
#endif
#if BUILDFLAG(IS_MAC)
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/cocoa/screentime/screentime_features.h"
#endif // BUILDFLAG(IS_MAC)
#if BUILDFLAG(ENABLE_CARDBOARD)
#include "device/vr/public/cpp/features.h"
#endif // ENABLE_CARDBOARD
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "chrome/browser/extensions/cws_info_service.h"
#include "extensions/common/extension_features.h"
#include "extensions/common/switches.h"
#endif // BUILDFLAG(ENABLE_EXTENSIONS)
#if BUILDFLAG(ENABLE_PDF)
#include "pdf/pdf_features.h"
#endif
#if BUILDFLAG(ENABLE_PRINTING)
#include "printing/printing_features.h"
#endif
#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
#include "components/supervised_user/core/common/features.h" // nogncheck
#endif // ENABLE_SUPERVISED_USERS
#if BUILDFLAG(ENABLE_VR)
#include "device/vr/public/cpp/features.h"
#endif
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
#include "ui/ozone/buildflags.h"
#include "ui/ozone/public/ozone_switches.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
#if !BUILDFLAG(IS_ANDROID) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
#include "chrome/browser/promos/promos_features.h"
#endif // !BUILDFLAG(IS_ANDROID) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
#if BUILDFLAG(IS_WIN)
#include "chrome/browser/enterprise/platform_auth/platform_auth_features.h"
#include "chrome/browser/win/titlebar_config.h"
#endif
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
#include "chrome/browser/enterprise/profile_management/profile_management_features.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
#if defined(TOOLKIT_VIEWS)
#include "ui/views/views_features.h"
#include "ui/views/views_switches.h"
#endif // defined(TOOLKIT_VIEWS)
using flags_ui::FeatureEntry;
using flags_ui::kDeprecated;
using flags_ui::kOsAndroid;
using flags_ui::kOsCrOS;
using flags_ui::kOsCrOSOwnerOnly;
using flags_ui::kOsFuchsia;
using flags_ui::kOsLacros;
using flags_ui::kOsLinux;
using flags_ui::kOsMac;
using flags_ui::kOsWin;
namespace about_flags {
namespace {
const unsigned kOsAll =
kOsMac | kOsWin | kOsLinux | kOsCrOS | kOsAndroid | kOsFuchsia | kOsLacros;
const unsigned kOsDesktop =
kOsMac | kOsWin | kOsLinux | kOsCrOS | kOsFuchsia | kOsLacros;
#if defined(USE_AURA)
const unsigned kOsAura = kOsWin | kOsLinux | kOsCrOS | kOsFuchsia | kOsLacros;
#endif // USE_AURA
#if defined(USE_AURA)
const FeatureEntry::Choice kPullToRefreshChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flags_ui::kGenericExperimentChoiceDisabled, switches::kPullToRefresh, "0"},
{flags_ui::kGenericExperimentChoiceEnabled, switches::kPullToRefresh, "1"},
{flag_descriptions::kPullToRefreshEnabledTouchscreen,
switches::kPullToRefresh, "2"}};
#endif // USE_AURA
const FeatureEntry::Choice kOverlayStrategiesChoices[] = {
{flag_descriptions::kOverlayStrategiesDefault, "", ""},
{flag_descriptions::kOverlayStrategiesNone,
switches::kEnableHardwareOverlays, ""},
{flag_descriptions::kOverlayStrategiesUnoccludedFullscreen,
switches::kEnableHardwareOverlays, "single-fullscreen"},
{flag_descriptions::kOverlayStrategiesUnoccluded,
switches::kEnableHardwareOverlays, "single-fullscreen,single-on-top"},
{flag_descriptions::kOverlayStrategiesOccludedAndUnoccluded,
switches::kEnableHardwareOverlays,
"single-fullscreen,single-on-top,underlay"},
};
const FeatureEntry::Choice kTouchTextSelectionStrategyChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kTouchSelectionStrategyCharacter,
blink::switches::kTouchTextSelectionStrategy,
blink::switches::kTouchTextSelectionStrategy_Character},
{flag_descriptions::kTouchSelectionStrategyDirection,
blink::switches::kTouchTextSelectionStrategy,
blink::switches::kTouchTextSelectionStrategy_Direction}};
const FeatureEntry::Choice kEnablePasswordSharingChoices[] = {
{"Default", "", ""},
{"Bootstraping Only", switches::kEnableFeatures,
"SharingOfferKeyPairBootstrap"},
{"Enabled", switches::kEnableFeatures,
"SharingOfferKeyPairBootstrap,SendPasswords,"
"PasswordManagerEnableSenderService,"
"PasswordManagerEnableReceiverService,SharedPasswordNotificationUI"},
};
const FeatureEntry::Choice kEnableSearchEngineChoice[] = {
{"Default", "", ""},
{"Enabled", switches::kEnableFeatures,
"SearchEngineChoice,SearchEngineChoiceTrigger"},
{"Disabled", switches::kDisableSearchEngineChoiceScreen, ""},
{"Enabled - WithForcedEeaCountry", switches::kEnableFeatures,
"SearchEngineChoice,SearchEngineChoiceTrigger:with_force_eea_country/"
"true"},
};
#if BUILDFLAG(IS_WIN)
const FeatureEntry::FeatureParam kMediaFoundationClearStrategyUseFrameServer[] =
{{"strategy", "frame-server"}};
const FeatureEntry::FeatureParam
kMediaFoundationClearStrategyUseDirectComposition[] = {
{"strategy", "direct-composition"}};
const FeatureEntry::FeatureParam kMediaFoundationClearStrategyUseDynamic[] = {
{"strategy", "dynamic"}};
const FeatureEntry::FeatureVariation kMediaFoundationClearStrategyVariations[] =
{{"Direct Composition", kMediaFoundationClearStrategyUseDirectComposition,
std::size(kMediaFoundationClearStrategyUseDirectComposition), nullptr},
{"Frame Server", kMediaFoundationClearStrategyUseFrameServer,
std::size(kMediaFoundationClearStrategyUseFrameServer), nullptr},
{"Dynamic", kMediaFoundationClearStrategyUseDynamic,
std::size(kMediaFoundationClearStrategyUseDynamic), nullptr}};
const FeatureEntry::Choice kUseAngleChoicesWindows[] = {
{flag_descriptions::kUseAngleDefault, "", ""},
{flag_descriptions::kUseAngleGL, switches::kUseANGLE,
gl::kANGLEImplementationOpenGLName},
{flag_descriptions::kUseAngleD3D11, switches::kUseANGLE,
gl::kANGLEImplementationD3D11Name},
{flag_descriptions::kUseAngleD3D9, switches::kUseANGLE,
gl::kANGLEImplementationD3D9Name},
{flag_descriptions::kUseAngleD3D11on12, switches::kUseANGLE,
gl::kANGLEImplementationD3D11on12Name}};
#elif BUILDFLAG(IS_MAC)
const FeatureEntry::Choice kUseAngleChoicesMac[] = {
{flag_descriptions::kUseAngleDefault, "", ""},
{flag_descriptions::kUseAngleGL, switches::kUseANGLE,
gl::kANGLEImplementationOpenGLName},
{flag_descriptions::kUseAngleMetal, switches::kUseANGLE,
gl::kANGLEImplementationMetalName}};
#endif
#if BUILDFLAG(IS_WIN)
const FeatureEntry::FeatureParam kDXGIWaitableSwapChain1Frame = {
"DXGIWaitableSwapChainMaxQueuedFrames", "1"};
const FeatureEntry::FeatureParam kDXGIWaitableSwapChain2Frames = {
"DXGIWaitableSwapChainMaxQueuedFrames", "2"};
const FeatureEntry::FeatureParam kDXGIWaitableSwapChain3Frames = {
"DXGIWaitableSwapChainMaxQueuedFrames", "3"};
const FeatureEntry::FeatureVariation kDXGIWaitableSwapChainVariations[] = {
{"Max 1 Frame", &kDXGIWaitableSwapChain1Frame, 1, nullptr},
{"Max 2 Frames", &kDXGIWaitableSwapChain2Frames, 1, nullptr},
{"Max 3 Frames", &kDXGIWaitableSwapChain3Frames, 1, nullptr}};
#endif
#if BUILDFLAG(IS_LINUX)
const FeatureEntry::Choice kOzonePlatformHintRuntimeChoices[] = {
{flag_descriptions::kOzonePlatformHintChoiceDefault, "", ""},
{flag_descriptions::kOzonePlatformHintChoiceAuto,
switches::kOzonePlatformHint, "auto"},
#if BUILDFLAG(OZONE_PLATFORM_X11)
{flag_descriptions::kOzonePlatformHintChoiceX11,
switches::kOzonePlatformHint, "x11"},
#endif
#if BUILDFLAG(OZONE_PLATFORM_WAYLAND)
{flag_descriptions::kOzonePlatformHintChoiceWayland,
switches::kOzonePlatformHint, "wayland"},
#endif
};
#endif
#if BUILDFLAG(ENABLE_VR)
const FeatureEntry::Choice kWebXrForceRuntimeChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kWebXrRuntimeChoiceNone, switches::kWebXrForceRuntime,
switches::kWebXrRuntimeNone},
#if BUILDFLAG(ENABLE_CARDBOARD)
{flag_descriptions::kWebXrRuntimeChoiceCardboard,
switches::kWebXrForceRuntime, switches::kWebXrRuntimeCardboard},
#endif
#if BUILDFLAG(ENABLE_GVR_SERVICES)
{flag_descriptions::kWebXrRuntimeChoiceGVR, switches::kWebXrForceRuntime,
switches::kWebXrRuntimeGVR},
#endif
#if BUILDFLAG(ENABLE_OPENXR)
{flag_descriptions::kWebXrRuntimeChoiceOpenXR, switches::kWebXrForceRuntime,
switches::kWebXrRuntimeOpenXr},
#endif // ENABLE_OPENXR
};
#endif // ENABLE_VR
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kCCTResizablePolicyParamUseAllowlist[] = {
{"default_policy", "use-allowlist"}};
const FeatureEntry::FeatureParam kCCTResizablePolicyParamUseDenylist[] = {
{"default_policy", "use-denylist"}};
const FeatureEntry::FeatureVariation
kCCTResizableThirdPartiesDefaultPolicyVariations[] = {
{"Use Allowlist", kCCTResizablePolicyParamUseAllowlist,
std::size(kCCTResizablePolicyParamUseAllowlist), nullptr},
{"Use Denylist", kCCTResizablePolicyParamUseDenylist,
std::size(kCCTResizablePolicyParamUseDenylist), nullptr}};
const FeatureEntry::FeatureParam kCCTBrandingTestFriendly[] = {
{"use_temporary_storage", "true"},
{"branding_cadence", "10000"} // 10 seconds
};
const FeatureEntry::FeatureVariation kCctBrandTransparencyVariations[] = {
{"Test friendly mode", kCCTBrandingTestFriendly,
std::size(kCCTBrandingTestFriendly), nullptr}};
const FeatureEntry::FeatureParam
kCCTRealTimeEngagementSignalsParamRealValues[] = {{"real_values", "true"}};
const FeatureEntry::FeatureParam
kCCTRealTimeEngagementSignalsParamFakeValues[] = {{"real_values", "false"}};
const FeatureEntry::FeatureParam kCCTPageInsightsHubFastPeekTriggerParam = {
"page_insights_can_autotrigger_after_end", "1000"}; // 1s
const FeatureEntry::FeatureParam kCCTPageInsightsHubShorterFullSizeParam = {
"page_insights_full_height_ratio", "0.775"};
const FeatureEntry::FeatureParam kCCTPageInsightsHubShorterPeekSizeParam = {
"page_insights_peek_height_ratio", "0.13"};
const FeatureEntry::FeatureParam
kCCTPageInsightsHubShorterPeekWithPrivacySizeParam = {
"page_insights_peek_with_privacy_height_ratio", "0.2"};
const FeatureEntry::FeatureParam kCCTPageInsightsHubFastPeekTriggerParams[] = {
kCCTPageInsightsHubFastPeekTriggerParam};
const FeatureEntry::FeatureParam kCCTPageInsightsHubShorterSheetParams[] = {
kCCTPageInsightsHubShorterFullSizeParam,
kCCTPageInsightsHubShorterPeekSizeParam,
kCCTPageInsightsHubShorterPeekWithPrivacySizeParam};
const FeatureEntry::FeatureParam kCCTPageInsightsHubBothParams[] = {
kCCTPageInsightsHubFastPeekTriggerParam,
kCCTPageInsightsHubShorterFullSizeParam,
kCCTPageInsightsHubShorterPeekSizeParam,
kCCTPageInsightsHubShorterPeekWithPrivacySizeParam};
const FeatureEntry::FeatureVariation kCCTPageInsightsHubVariations[] = {
{"with fast peek trigger", kCCTPageInsightsHubFastPeekTriggerParams,
std::size(kCCTPageInsightsHubFastPeekTriggerParams), nullptr},
{"with shorter sheet", kCCTPageInsightsHubShorterSheetParams,
std::size(kCCTPageInsightsHubShorterSheetParams), nullptr},
{"with both", kCCTPageInsightsHubBothParams,
std::size(kCCTPageInsightsHubBothParams), nullptr}};
const FeatureEntry::FeatureVariation kCCTRealTimeEngagementSignalsVariations[] =
{{"Send real values", kCCTRealTimeEngagementSignalsParamRealValues,
std::size(kCCTRealTimeEngagementSignalsParamRealValues), nullptr},
{"Send fake values", kCCTRealTimeEngagementSignalsParamFakeValues,
std::size(kCCTRealTimeEngagementSignalsParamFakeValues), nullptr}};
const FeatureEntry::FeatureParam
kCCTRealTimeEngagementSignalsAlternativeImplParam300[] = {
{"time_can_update_after_end", "300"} // 300ms
};
const FeatureEntry::FeatureParam
kCCTRealTimeEngagementSignalsAlternativeImplParam100[] = {
{"time_can_update_after_end", "100"} // 100ms
};
const FeatureEntry::FeatureVariation
kCCTRealTimeEngagementSignalsAlternativeImplVariations[] = {
{"Allow 300ms for scroll updates after scroll-end",
kCCTRealTimeEngagementSignalsAlternativeImplParam300,
std::size(kCCTRealTimeEngagementSignalsAlternativeImplParam300),
nullptr},
{"Allow 100ms for scroll updates after scroll-end",
kCCTRealTimeEngagementSignalsAlternativeImplParam100,
std::size(kCCTRealTimeEngagementSignalsAlternativeImplParam100),
nullptr}};
const FeatureEntry::Choice kReaderModeHeuristicsChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kReaderModeHeuristicsMarkup,
switches::kReaderModeHeuristics,
switches::reader_mode_heuristics::kOGArticle},
{flag_descriptions::kReaderModeHeuristicsAdaboost,
switches::kReaderModeHeuristics,
switches::reader_mode_heuristics::kAdaBoost},
{flag_descriptions::kReaderModeHeuristicsAlwaysOn,
switches::kReaderModeHeuristics,
switches::reader_mode_heuristics::kAlwaysTrue},
{flag_descriptions::kReaderModeHeuristicsAlwaysOff,
switches::kReaderModeHeuristics, switches::reader_mode_heuristics::kNone},
{flag_descriptions::kReaderModeHeuristicsAllArticles,
switches::kReaderModeHeuristics,
switches::reader_mode_heuristics::kAllArticles},
};
const FeatureEntry::Choice kForceUpdateMenuTypeChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kUpdateMenuTypeNone, switches::kForceUpdateMenuType,
"none"},
{flag_descriptions::kUpdateMenuTypeUpdateAvailable,
switches::kForceUpdateMenuType, "update_available"},
{flag_descriptions::kUpdateMenuTypeUnsupportedOSVersion,
switches::kForceUpdateMenuType, "unsupported_os_version"},
};
const FeatureEntry::FeatureParam kOmahaMinSdkVersionAndroidMinSdk1[] = {
{"min_sdk_version", "1"}};
const FeatureEntry::FeatureParam kOmahaMinSdkVersionAndroidMinSdk1000[] = {
{"min_sdk_version", "1000"}};
const FeatureEntry::FeatureVariation kOmahaMinSdkVersionAndroidVariations[] = {
{flag_descriptions::kOmahaMinSdkVersionAndroidMinSdk1Description,
kOmahaMinSdkVersionAndroidMinSdk1,
std::size(kOmahaMinSdkVersionAndroidMinSdk1), nullptr},
{flag_descriptions::kOmahaMinSdkVersionAndroidMinSdk1000Description,
kOmahaMinSdkVersionAndroidMinSdk1000,
std::size(kOmahaMinSdkVersionAndroidMinSdk1000), nullptr},
};
const FeatureEntry::FeatureParam
kOptimizationGuidePersonalizedFetchingAllowPageInsights[] = {
{"allowed_contexts", "CONTEXT_PAGE_INSIGHTS_HUB"}};
const FeatureEntry::FeatureVariation
kOptimizationGuidePersonalizedFetchingAllowPageInsightsVariations[] = {
{"for Page Insights",
kOptimizationGuidePersonalizedFetchingAllowPageInsights,
std::size(kOptimizationGuidePersonalizedFetchingAllowPageInsights),
nullptr}};
#else // BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kReaderModeOfferInSettings[] = {
{switches::kReaderModeDiscoverabilityParamName,
switches::kReaderModeOfferInSettings}};
const FeatureEntry::FeatureVariation kReaderModeDiscoverabilityVariations[] = {
{"available in settings", kReaderModeOfferInSettings,
std::size(kReaderModeOfferInSettings), nullptr}};
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kAdaptiveButton_AlwaysNone[] = {
{"mode", "always-none"}};
const FeatureEntry::FeatureParam kAdaptiveButton_AlwaysNewTab[] = {
{"mode", "always-new-tab"}};
const FeatureEntry::FeatureParam kAdaptiveButton_AlwaysShare[] = {
{"mode", "always-share"}};
const FeatureEntry::FeatureParam kAdaptiveButton_AlwaysVoice[] = {
{"mode", "always-voice"}};
const FeatureEntry::FeatureParam kAdaptiveButton_AlwaysTranslate[] = {
{"mode", "always-translate"}};
const FeatureEntry::FeatureVariation kAdaptiveButtonInTopToolbarVariations[] = {
{"Always None", kAdaptiveButton_AlwaysNone,
std::size(kAdaptiveButton_AlwaysNone), nullptr},
{"Always New Tab", kAdaptiveButton_AlwaysNewTab,
std::size(kAdaptiveButton_AlwaysNewTab), nullptr},
{"Always Share", kAdaptiveButton_AlwaysShare,
std::size(kAdaptiveButton_AlwaysShare), nullptr},
{"Always Voice", kAdaptiveButton_AlwaysVoice,
std::size(kAdaptiveButton_AlwaysVoice), nullptr},
{"Always Translate", kAdaptiveButton_AlwaysTranslate,
std::size(kAdaptiveButton_AlwaysTranslate), nullptr},
};
const FeatureEntry::FeatureParam kAdaptiveButtonCustomization_NewTab[] = {
{"default_segment", "new-tab"},
{"show_ui_only_after_ready", "false"},
{"ignore_segmentation_results", "true"}};
const FeatureEntry::FeatureParam kAdaptiveButtonCustomization_Share[] = {
{"default_segment", "share"},
{"show_ui_only_after_ready", "false"},
{"ignore_segmentation_results", "true"}};
const FeatureEntry::FeatureParam kAdaptiveButtonCustomization_Voice[] = {
{"default_segment", "voice"},
{"show_ui_only_after_ready", "false"},
{"ignore_segmentation_results", "true"}};
const FeatureEntry::FeatureVariation
kAdaptiveButtonInTopToolbarCustomizationVariations[] = {
{"New Tab", kAdaptiveButtonCustomization_NewTab,
std::size(kAdaptiveButtonCustomization_NewTab), nullptr},
{"Share", kAdaptiveButtonCustomization_Share,
std::size(kAdaptiveButtonCustomization_Share), nullptr},
{"Voice", kAdaptiveButtonCustomization_Voice,
std::size(kAdaptiveButtonCustomization_Voice), nullptr},
};
const FeatureEntry::FeatureParam kContextualPageActionsUiParams_Quiet[] = {
{"action_chip", "false"},
};
const FeatureEntry::FeatureParam kContextualPageActionsUiParams_ActionChip[] = {
{"action_chip", "true"},
{"action_chip_time_ms", "3000"},
};
const FeatureEntry::FeatureParam
kContextualPageActionsUiParams_ActionChip_6s[] = {
{"action_chip", "true"},
{"action_chip_time_ms", "6000"},
};
const FeatureEntry::FeatureParam
kContextualPageActionsUiParams_ActionChip_AltColor[] = {
{"action_chip", "true"},
{"action_chip_time_ms", "3000"},
{"action_chip_with_different_color", "true"},
};
const FeatureEntry::FeatureParam
kContextualPageActionsUiParams_ActionChip_AltColor_6s[] = {
{"action_chip", "true"},
{"action_chip_time_ms", "6000"},
{"action_chip_with_different_color", "true"},
};
const FeatureEntry::FeatureParam kContextualPageActions_DisableUi[]{
{"disable_ui", "true"},
};
const FeatureEntry::FeatureVariation kContextualPageActionsVariations[] = {
{"Disable UI", kContextualPageActions_DisableUi},
};
const FeatureEntry::FeatureVariation
kContextualPageActionPriceTrackingVariations[] = {
{"Quiet", kContextualPageActionsUiParams_Quiet,
std::size(kContextualPageActionsUiParams_Quiet), nullptr},
{"Action Chip", kContextualPageActionsUiParams_ActionChip,
std::size(kContextualPageActionsUiParams_ActionChip), nullptr},
{"Action Chip - 6s", kContextualPageActionsUiParams_ActionChip_6s,
std::size(kContextualPageActionsUiParams_ActionChip_6s), nullptr},
{"Action Chip - Alternative Color",
kContextualPageActionsUiParams_ActionChip_AltColor,
std::size(kContextualPageActionsUiParams_ActionChip_AltColor),
nullptr},
{"Action Chip - Alternative Color - 6s",
kContextualPageActionsUiParams_ActionChip_AltColor_6s,
std::size(kContextualPageActionsUiParams_ActionChip_AltColor_6s),
nullptr},
};
const FeatureEntry::FeatureParam
kContextualPageActionReaderMode_ActionChip_NotRateLimited[] = {
{"action_chip", "true"},
{"action_chip_time_ms", "3000"},
{"reader_mode_session_rate_limiting", "false"},
};
const FeatureEntry::FeatureParam
kContextualPageActionReaderMode_ActionChip_NotRateLimited_6s[] = {
{"action_chip", "true"},
{"action_chip_time_ms", "6000"},
{"reader_mode_session_rate_limiting", "false"},
};
const FeatureEntry::FeatureVariation
kContextualPageActionReaderModeVariations[] = {
{"Quiet", kContextualPageActionsUiParams_Quiet,
std::size(kContextualPageActionsUiParams_Quiet), nullptr},
{"Action Chip", kContextualPageActionsUiParams_ActionChip,
std::size(kContextualPageActionsUiParams_ActionChip), nullptr},
{"Action Chip - 6s", kContextualPageActionsUiParams_ActionChip_6s,
std::size(kContextualPageActionsUiParams_ActionChip_6s), nullptr},
{"Action Chip - Alternative Color",
kContextualPageActionsUiParams_ActionChip_AltColor,
std::size(kContextualPageActionsUiParams_ActionChip_AltColor),
nullptr},
{"Action Chip - Alternative Color - 6s",
kContextualPageActionsUiParams_ActionChip_AltColor_6s,
std::size(kContextualPageActionsUiParams_ActionChip_AltColor_6s),
nullptr},
{"Action Chip - Not rate limited - 3s",
kContextualPageActionReaderMode_ActionChip_NotRateLimited,
std::size(kContextualPageActionReaderMode_ActionChip_NotRateLimited),
nullptr},
{"Action Chip - Not rate limited - 6s",
kContextualPageActionReaderMode_ActionChip_NotRateLimited_6s,
std::size(
kContextualPageActionReaderMode_ActionChip_NotRateLimited_6s),
nullptr},
};
#endif // BUILDFLAG(IS_ANDROID)
#if !BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::FeatureParam kForceDark_SimpleHsl[] = {
{"inversion_method", "hsl_based"},
{"image_behavior", "none"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
const FeatureEntry::FeatureParam kForceDark_SimpleCielab[] = {
{"inversion_method", "cielab_based"},
{"image_behavior", "none"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
const FeatureEntry::FeatureParam kForceDark_SimpleRgb[] = {
{"inversion_method", "rgb_based"},
{"image_behavior", "none"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
// Keep in sync with the kForceDark_SelectiveImageInversion
// in aw_feature_entries.cc if you tweak these parameters.
const FeatureEntry::FeatureParam kForceDark_SelectiveImageInversion[] = {
{"inversion_method", "cielab_based"},
{"image_behavior", "selective"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
const FeatureEntry::FeatureParam kForceDark_SelectiveElementInversion[] = {
{"inversion_method", "cielab_based"},
{"image_behavior", "none"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
const FeatureEntry::FeatureParam kForceDark_SelectiveGeneralInversion[] = {
{"inversion_method", "cielab_based"},
{"image_behavior", "selective"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
const FeatureEntry::FeatureParam kForceDark_TransparencyAndNumColors[] = {
{"classifier_policy", "transparency_and_num_colors"}};
const FeatureEntry::FeatureVariation kForceDarkVariations[] = {
{"with simple HSL-based inversion", kForceDark_SimpleHsl,
std::size(kForceDark_SimpleHsl), nullptr},
{"with simple CIELAB-based inversion", kForceDark_SimpleCielab,
std::size(kForceDark_SimpleCielab), nullptr},
{"with simple RGB-based inversion", kForceDark_SimpleRgb,
std::size(kForceDark_SimpleRgb), nullptr},
{"with selective image inversion", kForceDark_SelectiveImageInversion,
std::size(kForceDark_SelectiveImageInversion), nullptr},
{"with selective inversion of non-image elements",
kForceDark_SelectiveElementInversion,
std::size(kForceDark_SelectiveElementInversion), nullptr},
{"with selective inversion of everything",
kForceDark_SelectiveGeneralInversion,
std::size(kForceDark_SelectiveGeneralInversion), nullptr},
{"with selective image inversion based on transparency and number of "
"colors",
kForceDark_TransparencyAndNumColors,
std::size(kForceDark_TransparencyAndNumColors), nullptr}};
#endif // !BUILDFLAG(IS_CHROMEOS)
const FeatureEntry::FeatureParam kClipboardMaximumAge60Seconds[] = {
{"UIClipboardMaximumAge", "60"}};
const FeatureEntry::FeatureParam kClipboardMaximumAge90Seconds[] = {
{"UIClipboardMaximumAge", "90"}};
const FeatureEntry::FeatureParam kClipboardMaximumAge120Seconds[] = {
{"UIClipboardMaximumAge", "120"}};
const FeatureEntry::FeatureParam kClipboardMaximumAge150Seconds[] = {
{"UIClipboardMaximumAge", "150"}};
const FeatureEntry::FeatureParam kClipboardMaximumAge180Seconds[] = {
{"UIClipboardMaximumAge", "180"}};
const FeatureEntry::FeatureVariation kClipboardMaximumAgeVariations[] = {
{"Enabled 60 seconds", kClipboardMaximumAge60Seconds,
std::size(kClipboardMaximumAge60Seconds), nullptr},
{"Enabled 90 seconds", kClipboardMaximumAge90Seconds,
std::size(kClipboardMaximumAge90Seconds), nullptr},
{"Enabled 120 seconds", kClipboardMaximumAge120Seconds,
std::size(kClipboardMaximumAge120Seconds), nullptr},
{"Enabled 150 seconds", kClipboardMaximumAge150Seconds,
std::size(kClipboardMaximumAge150Seconds), nullptr},
{"Enabled 180 seconds", kClipboardMaximumAge180Seconds,
std::size(kClipboardMaximumAge180Seconds), nullptr},
};
const FeatureEntry::FeatureParam kMBIModeLegacy[] = {{"mode", "legacy"}};
const FeatureEntry::FeatureParam kMBIModeEnabledPerRenderProcessHost[] = {
{"mode", "per_render_process_host"}};
const FeatureEntry::FeatureParam kMBIModeEnabledPerSiteInstance[] = {
{"mode", "per_site_instance"}};
const FeatureEntry::FeatureVariation kMBIModeVariations[] = {
{"legacy mode", kMBIModeLegacy, std::size(kMBIModeLegacy), nullptr},
{"per render process host", kMBIModeEnabledPerRenderProcessHost,
std::size(kMBIModeEnabledPerRenderProcessHost), nullptr},
{"per site instance", kMBIModeEnabledPerSiteInstance,
std::size(kMBIModeEnabledPerSiteInstance), nullptr}};
const FeatureEntry::FeatureParam kSearchPrefetchWithoutHoldback[] = {
{"prefetch_holdback", "false"}};
const FeatureEntry::FeatureParam kSearchPrefetchWithHoldback[] = {
{"prefetch_holdback", "true"}};
const FeatureEntry::FeatureVariation
kSearchPrefetchServicePrefetchingVariations[] = {
{"without holdback", kSearchPrefetchWithoutHoldback,
std::size(kSearchPrefetchWithoutHoldback), nullptr},
{"with holdback", kSearchPrefetchWithHoldback,
std::size(kSearchPrefetchWithHoldback), nullptr}};
#if BUILDFLAG(IS_CHROMEOS)
// Note these strings must match the `kUserGroupParam` definition in
// web_applications/preinstalled_web_app_window_experiment.cc.
const FeatureEntry::FeatureParam kPreinstalledWebAppWindowExperimentControl[] =
{{"user_group", "control"}};
const FeatureEntry::FeatureParam kPreinstalledWebAppWindowExperimentWindow[] = {
{"user_group", "window"}};
const FeatureEntry::FeatureParam kPreinstalledWebAppWindowExperimentTab[] = {
{"user_group", "tab"}};
const FeatureEntry::FeatureVariation
kPreinstalledWebAppWindowExperimentVariations[] = {
{"control", kPreinstalledWebAppWindowExperimentControl,
std::size(kPreinstalledWebAppWindowExperimentControl), nullptr},
{"window", kPreinstalledWebAppWindowExperimentWindow,
std::size(kPreinstalledWebAppWindowExperimentWindow), nullptr},
{"tab", kPreinstalledWebAppWindowExperimentTab,
std::size(kPreinstalledWebAppWindowExperimentTab), nullptr}};
const FeatureEntry::FeatureParam kRoundedWindowRadius8 = {
chromeos::features::kRoundedWindowsRadius, "8"};
const FeatureEntry::FeatureParam kRoundedWindowRadius10 = {
chromeos::features::kRoundedWindowsRadius, "10"};
const FeatureEntry::FeatureParam kRoundedWindowRadius12 = {
chromeos::features::kRoundedWindowsRadius, "12"};
const FeatureEntry::FeatureParam kRoundedWindowRadius14 = {
chromeos::features::kRoundedWindowsRadius, "14"};
const FeatureEntry::FeatureParam kRoundedWindowRadius16 = {
chromeos::features::kRoundedWindowsRadius, "16"};
const FeatureEntry::FeatureParam kRoundedWindowRadius18 = {
chromeos::features::kRoundedWindowsRadius, "18"};
const FeatureEntry::FeatureVariation kRoundedWindowsRadiusVariation[] = {
{"8", &kRoundedWindowRadius8, 1, nullptr},
{"10", &kRoundedWindowRadius10, 1, nullptr},
{"12", &kRoundedWindowRadius12, 1, nullptr},
{"14", &kRoundedWindowRadius14, 1, nullptr},
{"16", &kRoundedWindowRadius16, 1, nullptr},
{"18", &kRoundedWindowRadius18, 1, nullptr},
};
#endif // BUILDFLAG(IS_CHROMEOS)
#if BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::FeatureParam kArcVmMemorySizeShift_200[] = {
{"shift_mib", "-200"}};
const FeatureEntry::FeatureParam kArcVmMemorySizeShift_500[] = {
{"shift_mib", "-500"}};
const FeatureEntry::FeatureParam kArcVmMemorySizeShift_800[] = {
{"shift_mib", "-800"}};
const FeatureEntry::FeatureVariation kArcVmMemorySizeVariations[] = {
{"shift -200MiB", kArcVmMemorySizeShift_200,
std::size(kArcVmMemorySizeShift_200), nullptr},
{"shift -500MiB", kArcVmMemorySizeShift_500,
std::size(kArcVmMemorySizeShift_500), nullptr},
{"shift -800MiB", kArcVmMemorySizeShift_800,
std::size(kArcVmMemorySizeShift_800), nullptr},
};
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kCriticalPersistedTabDataSaveAndRestore[] = {
{"critical_persisted_tab_data_save_only", "false"},
{"delay_saves_until_deferred_startup", "false"}};
const FeatureEntry::FeatureParam kCriticalPersistedTabDataSaveOnly[] = {
{"critical_persisted_tab_data_save_only", "true"},
{"delay_saves_until_deferred_startup", "false"}};
const FeatureEntry::FeatureParam kDelaySavesUntilDeferredStartup[] = {
{"critical_persisted_tab_data_save_only", "false"},
{"delay_saves_until_deferred_startup", "true"}};
const FeatureEntry::FeatureVariation kCriticalPersistedTabDataVariations[] = {
{"Save and Restore", kCriticalPersistedTabDataSaveAndRestore,
std::size(kCriticalPersistedTabDataSaveAndRestore), nullptr},
{"Save Only", kCriticalPersistedTabDataSaveOnly,
std::size(kCriticalPersistedTabDataSaveOnly), nullptr},
{"Delay saves until DeferredStartup", kDelaySavesUntilDeferredStartup,
std::size(kDelaySavesUntilDeferredStartup), nullptr}};
const FeatureEntry::FeatureParam kShowSingleRowMVTiles[] = {
{"most_visited_max_rows_normal_screen", "1"},
{"most_visited_max_rows_small_screen", "1"},
{"small_screen_height_threshold_dp", "700"}};
const FeatureEntry::FeatureParam kShowTwoRowsMVTiles[] = {
{"most_visited_max_rows_normal_screen", "2"},