-
Notifications
You must be signed in to change notification settings - Fork 6.6k
/
about_flags.mm
1926 lines (1820 loc) · 98.8 KB
/
about_flags.mm
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.
// Implementation of about_flags for iOS that sets flags based on experimental
// settings.
#import "ios/chrome/browser/flags/about_flags.h"
#import <UIKit/UIKit.h>
#import <stddef.h>
#import <stdint.h>
#import "base/base_switches.h"
#import "base/check_op.h"
#import "base/debug/debugging_buildflags.h"
#import "base/functional/bind.h"
#import "base/functional/callback_helpers.h"
#import "base/mac/foundation_util.h"
#import "base/no_destructor.h"
#import "base/strings/stringprintf.h"
#import "base/strings/sys_string_conversions.h"
#import "base/system/sys_info.h"
#import "components/autofill/core/common/autofill_features.h"
#import "components/autofill/core/common/autofill_payments_features.h"
#import "components/autofill/core/common/autofill_switches.h"
#import "components/autofill/ios/browser/autofill_switches.h"
#import "components/bookmarks/common/bookmark_features.h"
#import "components/breadcrumbs/core/features.h"
#import "components/commerce/core/commerce_feature_list.h"
#import "components/commerce/core/flag_descriptions.h"
#import "components/content_settings/core/common/features.h"
#import "components/dom_distiller/core/dom_distiller_switches.h"
#import "components/download/public/background_service/features.h"
#import "components/enterprise/browser/enterprise_switches.h"
#import "components/feature_engagement/public/feature_constants.h"
#import "components/feature_engagement/public/feature_list.h"
#import "components/feed/feed_feature_list.h"
#import "components/flags_ui/feature_entry.h"
#import "components/flags_ui/feature_entry_macros.h"
#import "components/flags_ui/flags_storage.h"
#import "components/flags_ui/flags_ui_switches.h"
#import "components/history/core/browser/features.h"
#import "components/invalidation/impl/invalidation_switches.h"
#import "components/ntp_tiles/features.h"
#import "components/ntp_tiles/switches.h"
#import "components/omnibox/browser/omnibox_field_trial.h"
#import "components/omnibox/common/omnibox_features.h"
#import "components/optimization_guide/core/optimization_guide_features.h"
#import "components/optimization_guide/core/optimization_guide_switches.h"
#import "components/password_manager/core/common/password_manager_features.h"
#import "components/payments/core/features.h"
#import "components/policy/core/common/features.h"
#import "components/policy/core/common/policy_loader_ios_constants.h"
#import "components/policy/policy_constants.h"
#import "components/reading_list/features/reading_list_switches.h"
#import "components/safe_browsing/core/common/features.h"
#import "components/send_tab_to_self/features.h"
#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
#import "components/signin/core/browser/account_reconcilor.h"
#import "components/signin/ios/browser/features.h"
#import "components/signin/public/base/signin_switches.h"
#import "components/strings/grit/components_strings.h"
#import "components/sync/base/command_line_switches.h"
#import "components/sync/base/features.h"
#import "components/sync/base/pref_names.h"
#import "components/translate/core/browser/translate_prefs.h"
#import "components/translate/core/common/translate_util.h"
#import "ios/chrome/app/background_mode_buildflags.h"
#import "ios/chrome/browser/bring_android_tabs/features.h"
#import "ios/chrome/browser/browsing_data/browsing_data_features.h"
#import "ios/chrome/browser/crash_report/features.h"
#import "ios/chrome/browser/credential_provider_promo/features.h"
#import "ios/chrome/browser/default_browser/utils.h"
#import "ios/chrome/browser/find_in_page/features.h"
#import "ios/chrome/browser/flags/chrome_switches.h"
#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
#import "ios/chrome/browser/flags/system_flags.h"
#import "ios/chrome/browser/follow/follow_features.h"
#import "ios/chrome/browser/ntp/features.h"
#import "ios/chrome/browser/policy/cloud/user_policy_constants.h"
#import "ios/chrome/browser/policy/cloud/user_policy_switch.h"
#import "ios/chrome/browser/policy/policy_util.h"
#import "ios/chrome/browser/promos_manager/features.h"
#import "ios/chrome/browser/screen_time/screen_time_buildflags.h"
#import "ios/chrome/browser/shared/public/features/features.h"
#import "ios/chrome/browser/tabs/features.h"
#import "ios/chrome/browser/tabs/inactive_tabs/features.h"
#import "ios/chrome/browser/text_selection/text_selection_util.h"
#import "ios/chrome/browser/ui/app_store_rating/features.h"
#import "ios/chrome/browser/ui/authentication/features.h"
#import "ios/chrome/browser/ui/autofill/features.h"
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_feature.h"
#import "ios/chrome/browser/ui/download/features.h"
#import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h"
#import "ios/chrome/browser/ui/ntp/new_tab_page_field_trial_constants.h"
#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
#import "ios/chrome/browser/ui/post_restore_signin/features.h"
#import "ios/chrome/browser/ui/start_surface/start_surface_features.h"
#import "ios/chrome/browser/ui/whats_new/feature_flags.h"
#import "ios/chrome/browser/web/features.h"
#import "ios/chrome/grit/ios_strings.h"
#import "ios/components/security_interstitials/https_only_mode/feature.h"
#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
#import "ios/web/common/features.h"
#import "ios/web/common/user_agent.h"
#import "ios/web/common/web_view_creation_util.h"
#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
#import "ios/chrome/browser/screen_time/features.h"
#endif
#if !defined(OFFICIAL_BUILD)
#import "components/variations/variations_switches.h"
#endif
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
using flags_ui::FeatureEntry;
namespace {
const FeatureEntry::Choice kAutofillIOSDelayBetweenFieldsChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{"0", autofill::switches::kAutofillIOSDelayBetweenFields, "0"},
{"10", autofill::switches::kAutofillIOSDelayBetweenFields, "10"},
{"20", autofill::switches::kAutofillIOSDelayBetweenFields, "20"},
{"50", autofill::switches::kAutofillIOSDelayBetweenFields, "50"},
{"100", autofill::switches::kAutofillIOSDelayBetweenFields, "100"},
{"200", autofill::switches::kAutofillIOSDelayBetweenFields, "200"},
{"500", autofill::switches::kAutofillIOSDelayBetweenFields, "500"},
{"1000", autofill::switches::kAutofillIOSDelayBetweenFields, "1000"},
};
const FeatureEntry::Choice
kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
{"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
{"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
const FeatureEntry::FeatureVariation
kOmniboxUIMaxAutocompleteMatchesVariations[] = {
{"3 matches", kOmniboxUIMaxAutocompleteMatches3,
std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
{"4 matches", kOmniboxUIMaxAutocompleteMatches4,
std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
{"5 matches", kOmniboxUIMaxAutocompleteMatches5,
std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
{"6 matches", kOmniboxUIMaxAutocompleteMatches6,
std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
{"8 matches", kOmniboxUIMaxAutocompleteMatches8,
std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
{"10 matches", kOmniboxUIMaxAutocompleteMatches10,
std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
{"12 matches", kOmniboxUIMaxAutocompleteMatches12,
std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
{OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
{OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
{OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
{"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
nullptr},
{"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
nullptr},
{"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
nullptr},
};
const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
{OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
{OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
{OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
{"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
nullptr},
{"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
nullptr},
{"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
nullptr},
};
const FeatureEntry::FeatureParam kWhatsNewModuleLayout[] = {
{kWhatsNewModuleBasedLayoutParam, "true"}};
const FeatureEntry::FeatureVariation kWhatsNewLayoutVariations[] = {
{"Display module layout", kWhatsNewModuleLayout,
std::size(kWhatsNewModuleLayout), nullptr},
};
const FeatureEntry::FeatureParam kDefaultBrowserVideoPromoHalfscreen[] = {
{"default_browser_video_promo_halfscreen", "true"}};
const FeatureEntry::FeatureVariation kDefaultBrowserVideoPromoVariations[] = {
{"Show half screen ui", kDefaultBrowserVideoPromoHalfscreen,
std::size(kDefaultBrowserVideoPromoHalfscreen), nullptr},
};
const FeatureEntry::FeatureParam
kAutofillUseMobileLabelDisambiguationShowAll[] = {
{autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
autofill::features::
kAutofillUseMobileLabelDisambiguationParameterShowAll}};
const FeatureEntry::FeatureParam
kAutofillUseMobileLabelDisambiguationShowOne[] = {
{autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
autofill::features::
kAutofillUseMobileLabelDisambiguationParameterShowOne}};
const FeatureEntry::FeatureVariation
kAutofillUseMobileLabelDisambiguationVariations[] = {
{"(show all)", kAutofillUseMobileLabelDisambiguationShowAll,
std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr},
{"(show one)", kAutofillUseMobileLabelDisambiguationShowOne,
std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}};
const FeatureEntry::FeatureParam
kDefaultBrowserFullscreenPromoExperimentRemindMeLater[] = {
{kDefaultBrowserFullscreenPromoExperimentRemindMeGroupParam, "true"}};
const FeatureEntry::FeatureVariation
kDefaultBrowserFullscreenPromoExperimentVariations[] = {
{"Remind me later",
kDefaultBrowserFullscreenPromoExperimentRemindMeLater,
std::size(kDefaultBrowserFullscreenPromoExperimentRemindMeLater),
nullptr}};
// Uses int values from SigninPromoViewStyle enum.
const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = {
{kDiscoverFeedTopSyncPromoStyle, "0"}};
const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactTitled[] = {
{kDiscoverFeedTopSyncPromoStyle, "1"}};
const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] =
{{kDiscoverFeedTopSyncPromoStyle, "2"}};
const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = {
{kDiscoverFeedTopSyncPromoStyle, "3"}};
const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = {
{"Standard", kDiscoverFeedTopSyncPromoStandard,
std::size(kDiscoverFeedTopSyncPromoStandard), nullptr},
{"Compact Titled (Unpersonalized)", kDiscoverFeedTopSyncPromoCompactTitled,
std::size(kDiscoverFeedTopSyncPromoCompactTitled), nullptr},
{"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal,
std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr},
{"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical,
std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}};
const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = {
{kDisableStickyHeaderForFollowingFeed, "true"}};
const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = {
{kOverrideFeedHeaderHeight, "30"}};
const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = {
{kDisableStickyHeaderForFollowingFeed, "true"},
{kOverrideFeedHeaderHeight, "30"}};
const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = {
{"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader,
std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr},
{"Reduced header height", kFeedHeaderSettingReducedHeight,
std::size(kFeedHeaderSettingReducedHeight), nullptr},
{"All improvements", kFeedHeaderSettingAllImprovements,
std::size(kFeedHeaderSettingAllImprovements), nullptr}};
const FeatureEntry::FeatureParam kStartSurfaceTenSecondsShrinkLogo[] = {
{kStartSurfaceShrinkLogoParam, "true"},
{kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
const FeatureEntry::FeatureParam kStartSurfaceTenSecondsHideShortcuts[] = {
{kStartSurfaceHideShortcutsParam, "true"},
{kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
const FeatureEntry::FeatureParam kStartSurfaceTenSecondsReturnToRecentTab[] = {
{kStartSurfaceReturnToRecentTabParam, "true"},
{kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
const FeatureEntry::FeatureParam
kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab[] = {
{kStartSurfaceShrinkLogoParam, "true"},
{kStartSurfaceReturnToRecentTabParam, "true"},
{kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
const FeatureEntry::FeatureParam
kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab[] = {
{kStartSurfaceHideShortcutsParam, "true"},
{kStartSurfaceReturnToRecentTabParam, "true"},
{kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
const FeatureEntry::FeatureParam kStartSurfaceOneHourShrinkLogo[] = {
{kStartSurfaceShrinkLogoParam, "true"},
{kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
const FeatureEntry::FeatureParam kStartSurfaceOneHourHideShortcuts[] = {
{kStartSurfaceHideShortcutsParam, "true"},
{kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
const FeatureEntry::FeatureParam kStartSurfaceOneHourReturnToRecentTab[] = {
{kStartSurfaceReturnToRecentTabParam, "true"},
{kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
const FeatureEntry::FeatureParam
kStartSurfaceOneHourShrinkLogoReturnToRecentTab[] = {
{kStartSurfaceShrinkLogoParam, "true"},
{kStartSurfaceReturnToRecentTabParam, "true"},
{kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
const FeatureEntry::FeatureParam
kStartSurfaceOneHourHideShortcutsReturnToRecentTab[] = {
{kStartSurfaceHideShortcutsParam, "true"},
{kStartSurfaceReturnToRecentTabParam, "true"},
{kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
{"10s:Show Return to Recent Tab tile",
kStartSurfaceTenSecondsReturnToRecentTab,
std::size(kStartSurfaceTenSecondsReturnToRecentTab), nullptr},
{"10s:Shrink Logo", kStartSurfaceTenSecondsShrinkLogo,
std::size(kStartSurfaceTenSecondsShrinkLogo), nullptr},
{"10s:Hide Shortcuts", kStartSurfaceTenSecondsHideShortcuts,
std::size(kStartSurfaceTenSecondsHideShortcuts), nullptr},
{"10s:Shrink Logo and show Return to Recent Tab tile",
kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab,
std::size(kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab), nullptr},
{"10s:Hide Shortcuts and show Return to Recent Tab tile",
kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab,
std::size(kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab), nullptr},
{"1h:Show Return to Recent Tab tile", kStartSurfaceOneHourReturnToRecentTab,
std::size(kStartSurfaceOneHourReturnToRecentTab), nullptr},
{"1h:Shrink Logo", kStartSurfaceOneHourShrinkLogo,
std::size(kStartSurfaceOneHourShrinkLogo), nullptr},
{"1h:Hide Shortcuts", kStartSurfaceOneHourHideShortcuts,
std::size(kStartSurfaceOneHourHideShortcuts), nullptr},
{"1h:Shrink Logo and show Return to Recent Tab tile",
kStartSurfaceOneHourShrinkLogoReturnToRecentTab,
std::size(kStartSurfaceOneHourShrinkLogoReturnToRecentTab), nullptr},
{"1h:Hide Shortcuts and show Return to Recent Tab tile",
kStartSurfaceOneHourHideShortcutsReturnToRecentTab,
std::size(kStartSurfaceOneHourHideShortcutsReturnToRecentTab), nullptr},
};
const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
{kMagicStackMostVisitedModuleParam, "true"},
{kReducedSpaceParam, "-80"}};
const FeatureEntry::FeatureParam kMagicStackPushedDown[] = {
{kMagicStackMostVisitedModuleParam, "false"},
{kReducedSpaceParam, "-30"}};
const FeatureEntry::FeatureParam kMagicStackReducedNTPTopSpace[] = {
{kMagicStackMostVisitedModuleParam, "false"},
{kReducedSpaceParam, "20"}};
const FeatureEntry::FeatureVariation kMagicStackVariations[]{
{"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
std::size(kMagicStackMostVisitedModule), nullptr},
{"Magic Stack with more NTP Top Space", kMagicStackPushedDown,
std::size(kMagicStackPushedDown), nullptr},
{"Magic Stack with Reduced NTP Top Space", kMagicStackReducedNTPTopSpace,
std::size(kMagicStackReducedNTPTopSpace), nullptr},
};
const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesAll[] = {
{kHideContentSuggestionsTilesParamMostVisited, "true"},
{kHideContentSuggestionsTilesParamShortcuts, "true"},
};
const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesMVT[] = {
{kHideContentSuggestionsTilesParamMostVisited, "true"},
{kHideContentSuggestionsTilesParamShortcuts, "false"},
};
const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesShortcuts[] = {
{kHideContentSuggestionsTilesParamMostVisited, "false"},
{kHideContentSuggestionsTilesParamShortcuts, "true"},
};
const FeatureEntry::FeatureVariation kHideContentSuggestionTilesVariations[]{
{"Hide all tiles", kHideAllContentSuggestionsTilesAll,
std::size(kHideAllContentSuggestionsTilesAll), nullptr},
{"Hide Most Visited tiles", kHideAllContentSuggestionsTilesMVT,
std::size(kHideAllContentSuggestionsTilesMVT), nullptr},
{"Hide Shortcuts tiles", kHideAllContentSuggestionsTilesShortcuts,
std::size(kHideAllContentSuggestionsTilesShortcuts), nullptr},
};
#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
// Feed Background Refresh Feature Params.
const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
{kEnableServerDrivenBackgroundRefreshSchedule, "false"},
{kEnableRecurringBackgroundRefreshSchedule, "false"},
{kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
{kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
{kEnableServerDrivenBackgroundRefreshSchedule, "false"},
{kEnableRecurringBackgroundRefreshSchedule, "false"},
{kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
{kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
{kEnableServerDrivenBackgroundRefreshSchedule, "false"},
{kEnableRecurringBackgroundRefreshSchedule, "true"},
{kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
{kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
{kEnableServerDrivenBackgroundRefreshSchedule, "false"},
{kEnableRecurringBackgroundRefreshSchedule, "true"},
{kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
{kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
{kEnableServerDrivenBackgroundRefreshSchedule, "true"},
{kEnableRecurringBackgroundRefreshSchedule, "false"},
{kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
{kBackgroundRefreshIntervalInSeconds, "0"}};
const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
{kEnableServerDrivenBackgroundRefreshSchedule, "true"},
{kEnableRecurringBackgroundRefreshSchedule, "true"},
{kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
{kBackgroundRefreshIntervalInSeconds, "0"}};
const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
{kEnableServerDrivenBackgroundRefreshSchedule, "true"},
{kEnableRecurringBackgroundRefreshSchedule, "false"},
{kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
{kBackgroundRefreshIntervalInSeconds, "0"}};
const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
{kEnableServerDrivenBackgroundRefreshSchedule, "true"},
{kEnableRecurringBackgroundRefreshSchedule, "true"},
{kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
{kBackgroundRefreshIntervalInSeconds, "0"}};
// Feed Background Refresh Feature Variations.
const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
{"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
{"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
{"1hr Interval 1hr Max Age Recurring",
kOneHourIntervalOneHourMaxAgeRecurring,
std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
{"4hr Interval 6hr Max Age Recurring",
kFourHourIntervalSixHourMaxAgeRecurring,
std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
{"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
{"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
{"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
{"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
};
#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
// Feed Foreground Refresh Feature Params.
const FeatureEntry::FeatureParam kFeedSessionCloseForegroundRefresh[] = {
{kEnableFeedSessionCloseForegroundRefresh, "true"},
{kEnableFeedAppCloseForegroundRefresh, "false"},
{kEnableFeedAppCloseBackgroundRefresh, "false"}};
const FeatureEntry::FeatureParam kFeedAppCloseForegroundRefresh[] = {
{kEnableFeedSessionCloseForegroundRefresh, "false"},
{kEnableFeedAppCloseForegroundRefresh, "true"},
{kEnableFeedAppCloseBackgroundRefresh, "false"}};
const FeatureEntry::FeatureParam kFeedAppCloseBackgroundRefresh[] = {
{kEnableFeedSessionCloseForegroundRefresh, "false"},
{kEnableFeedAppCloseForegroundRefresh, "false"},
{kEnableFeedAppCloseBackgroundRefresh, "true"}};
// Feed Invisible Foreground Refresh Feature Variations.
const FeatureEntry::FeatureVariation
kFeedInvisibleForegroundRefreshVariations[] = {
{"session close foreground refresh", kFeedSessionCloseForegroundRefresh,
std::size(kFeedSessionCloseForegroundRefresh), nullptr},
{"app close foreground refresh", kFeedAppCloseForegroundRefresh,
std::size(kFeedAppCloseForegroundRefresh), nullptr},
{"app close background refresh", kFeedAppCloseBackgroundRefresh,
std::size(kFeedAppCloseBackgroundRefresh), nullptr},
};
const FeatureEntry::FeatureParam kEnablePinnedTabsOverflow[] = {
{kEnablePinnedTabsOverflowParam, "true"}};
const FeatureEntry::FeatureVariation kEnablePinnedTabsVariations[] = {
{"+ overflow entry", kEnablePinnedTabsOverflow,
std::size(kEnablePinnedTabsOverflow), nullptr},
};
const FeatureEntry::FeatureParam
kAutofillBrandingIOSDismissWhenInteractedNoAnimation[] = {
{autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
autofill::features::
kAutofillBrandingIOSParamFrequencyTypeDismissWhenInteracted},
{autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
autofill::features::
kAutofillBrandingIOSParamFrequencyTypeDismissWhenInteracted}};
const FeatureEntry::FeatureParam kAutofillBrandingIOSAlwaysShowAndDismiss[] = {
{autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
autofill::features::
kAutofillBrandingIOSParamFrequencyTypeAlwaysShowAndDismiss},
{autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
autofill::features::kAutofillBrandingIOSParamFrequencyTypeAlways}};
const FeatureEntry::FeatureParam
kAutofillBrandingIOSDismissWhenInteractedWithAnimation[] = {
{autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
autofill::features::
kAutofillBrandingIOSParamFrequencyTypeDismissWhenInteracted},
{autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
autofill::features::kAutofillBrandingIOSParamFrequencyTypeAlways}};
const FeatureEntry::FeatureVariation kAutofillBrandingIOSVariations[] = {
{"(will not show again after user interacts with keyboard accessories)",
kAutofillBrandingIOSDismissWhenInteractedNoAnimation,
std::size(kAutofillBrandingIOSDismissWhenInteractedNoAnimation), nullptr},
{"(shows and fades to the left every time)",
kAutofillBrandingIOSAlwaysShowAndDismiss,
std::size(kAutofillBrandingIOSAlwaysShowAndDismiss), nullptr},
{"(fades to the left after user interacts with keyboard accessories)",
kAutofillBrandingIOSDismissWhenInteractedWithAnimation,
std::size(kAutofillBrandingIOSDismissWhenInteractedWithAnimation),
nullptr}};
const FeatureEntry::FeatureParam kIOSNewPostRestoreExperienceMinimal[] = {
{post_restore_signin::features::kIOSNewPostRestoreExperienceParam, "true"}};
const FeatureEntry::FeatureVariation kIOSNewPostRestoreExperienceVariations[] =
{{"minimal", kIOSNewPostRestoreExperienceMinimal,
std::size(kIOSNewPostRestoreExperienceMinimal), nullptr}};
const FeatureEntry::FeatureParam kNewTabPageFieldTrialTileAblationHideAll[] = {
{ntp_tiles::kNewTabPageFieldTrialParam, "1"}};
const FeatureEntry::FeatureParam
kNewTabPageFieldTrialTileAblationHideMVTOnly[] = {
{ntp_tiles::kNewTabPageFieldTrialParam, "2"}};
const FeatureEntry::FeatureVariation kNewTabPageFieldTrialVariations[] = {
{"- Tile ablation, Hide all", kNewTabPageFieldTrialTileAblationHideAll,
std::size(kNewTabPageFieldTrialTileAblationHideAll), nullptr},
{"- Tile ablation, Hide MVT only",
kNewTabPageFieldTrialTileAblationHideMVTOnly,
std::size(kNewTabPageFieldTrialTileAblationHideMVTOnly), nullptr}};
const FeatureEntry::FeatureParam kEnableExpKitTextClassifierDate[] = {
{"date", "true"}};
const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddress[] = {
{"address", "true"}};
const FeatureEntry::FeatureParam kEnableExpKitTextClassifierPhoneNumber[] = {
{"phonenumber", "true"}};
const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmail[] = {
{"email", "true"}};
const FeatureEntry::FeatureParam kEnableExpKitTextClassifierOneTap[] = {
{"onetap", "true"}};
const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAll[] = {
{"date", "true"},
{"address", "true"},
{"phonenumber", "true"},
{"email", "true"}};
const FeatureEntry::FeatureVariation kEnableExpKitTextClassifierVariations[] = {
{"Enabled for all entities", kEnableExpKitTextClassifierAll,
std::size(kEnableExpKitTextClassifierAll), nullptr},
{"Enabled for date", kEnableExpKitTextClassifierDate,
std::size(kEnableExpKitTextClassifierDate), nullptr},
{"Enabled for address", kEnableExpKitTextClassifierAddress,
std::size(kEnableExpKitTextClassifierAddress), nullptr},
{"Enabled for phonenumber", kEnableExpKitTextClassifierPhoneNumber,
std::size(kEnableExpKitTextClassifierPhoneNumber), nullptr},
{"Enabled for email", kEnableExpKitTextClassifierEmail,
std::size(kEnableExpKitTextClassifierEmail), nullptr},
{"Enabled for One Tap mode", kEnableExpKitTextClassifierOneTap,
std::size(kEnableExpKitTextClassifierOneTap), nullptr}};
const FeatureEntry::FeatureParam kFollowingFeedSortTypeGroupedByPublisher[] = {
{kFollowingFeedDefaultSortTypeGroupedByPublisher, "true"},
{kFollowingFeedDefaultSortTypeSortByLatest, "false"}};
const FeatureEntry::FeatureParam kFollowingFeedSortTypeSortByLatest[] = {
{kFollowingFeedDefaultSortTypeGroupedByPublisher, "false"},
{kFollowingFeedDefaultSortTypeSortByLatest, "true"}};
const FeatureEntry::FeatureVariation kFollowingFeedDefaultSortTypeVariations[] =
{{"Grouped by Publisher", kFollowingFeedSortTypeGroupedByPublisher,
std::size(kFollowingFeedSortTypeGroupedByPublisher), nullptr},
{"Sort by Latest", kFollowingFeedSortTypeSortByLatest,
std::size(kFollowingFeedSortTypeSortByLatest), nullptr}};
const FeatureEntry::FeatureParam kNativeFindInPageWithChromeFindBar[] = {
{kNativeFindInPageParameterName, kNativeFindInPageWithChromeFindBarParam}};
const FeatureEntry::FeatureVariation kNativeFindInPageVariations[] = {
{"With Chrome Find Bar", kNativeFindInPageWithChromeFindBar,
std::size(kNativeFindInPageWithChromeFindBar), nullptr}};
const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = {
{kTabInactivityThresholdParameterName,
kTabInactivityThresholdOneWeekParam}};
const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = {
{kTabInactivityThresholdParameterName,
kTabInactivityThresholdTwoWeeksParam}};
const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = {
{kTabInactivityThresholdParameterName,
kTabInactivityThresholdThreeWeeksParam}};
const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = {
{kTabInactivityThresholdParameterName,
kTabInactivityThresholdOneMinuteDemoParam}};
const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = {
{"One week", kTabInactivityThresholdOneWeek,
std::size(kTabInactivityThresholdOneWeek), nullptr},
{"Two weeks", kTabInactivityThresholdTwoWeeks,
std::size(kTabInactivityThresholdTwoWeeks), nullptr},
{"Three weeks", kTabInactivityThresholdThreeWeeks,
std::size(kTabInactivityThresholdThreeWeeks), nullptr},
{"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo,
std::size(kTabInactivityThresholdOneMinuteDemo), nullptr},
};
const FeatureEntry::FeatureParam
kCredentialProviderExtensionPromoOnPasswordSaved[] = {
{kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
const FeatureEntry::FeatureParam
kCredentialProviderExtensionPromoOnPasswordCopied[] = {
{kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}};
const FeatureEntry::FeatureParam
kCredentialProviderExtensionPromoOnLoginWithAutofill[] = {
{kCredentialProviderExtensionPromoOnLoginWithAutofillParam, "true"}};
const FeatureEntry::FeatureParam
kCredentialProviderExtensionPromoOnAllTriggers[] = {
{kCredentialProviderExtensionPromoOnLoginWithAutofillParam, "true"},
{kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"},
{kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
const FeatureEntry::FeatureVariation
kCredentialProviderExtensionPromoVariations[] = {
{"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved,
std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr},
{"On password copied",
kCredentialProviderExtensionPromoOnPasswordCopied,
std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr},
{"On successful login with autofill",
kCredentialProviderExtensionPromoOnLoginWithAutofill,
std::size(kCredentialProviderExtensionPromoOnLoginWithAutofill),
nullptr},
{"On all triggers", kCredentialProviderExtensionPromoOnAllTriggers,
std::size(kCredentialProviderExtensionPromoOnAllTriggers), nullptr},
};
const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = {
{kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}};
const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] =
{{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito,
std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr}};
const FeatureEntry::FeatureParam kAddToHomeScreenDisableIncognito[] = {
{kAddToHomeScreenDisableIncognitoParam, "true"}};
const FeatureEntry::FeatureVariation kAddToHomeScreenVariations[] = {
{"Disable on incognito", kAddToHomeScreenDisableIncognito,
std::size(kAddToHomeScreenDisableIncognito), nullptr}};
const FeatureEntry::FeatureParam kBringYourOwnTabsIOSBottomMessage[] = {
{kBringYourOwnTabsIOSParam, "true"}};
const FeatureEntry::FeatureVariation kBringYourOwnTabsIOSVariations[] = {
{"with bottom message on tab grid", kBringYourOwnTabsIOSBottomMessage,
std::size(kBringYourOwnTabsIOSBottomMessage), nullptr}};
const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearchWith[] = {
{kIOSEditMenuSearchWithTitleParamTitle,
kIOSEditMenuSearchWithTitleSearchWithParam}};
const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearch[] = {
{kIOSEditMenuSearchWithTitleParamTitle,
kIOSEditMenuSearchWithTitleSearchParam}};
const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleWebSearch[] = {
{kIOSEditMenuSearchWithTitleParamTitle,
kIOSEditMenuSearchWithTitleWebSearchParam}};
const FeatureEntry::FeatureVariation kIOSEditMenuSearchWithVariations[] = {
{"Search with DSE", kIOSEditMenuSearchWithTitleSearchWith,
std::size(kIOSEditMenuSearchWithTitleSearchWith), nullptr},
{"Search", kIOSEditMenuSearchWithTitleSearch,
std::size(kIOSEditMenuSearchWithTitleSearch), nullptr},
{"Web Search", kIOSEditMenuSearchWithTitleWebSearch,
std::size(kIOSEditMenuSearchWithTitleWebSearch), nullptr},
};
// To add a new entry, add to the end of kFeatureEntries. There are four
// distinct types of entries:
// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
// macro for this type supplying the command line to the macro.
// . MULTI_VALUE: a list of choices, the first of which should correspond to a
// deactivated state for this lab (i.e. no command line option). To specify
// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
// array of choices.
// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
// either enabled, disabled, or uses the default value of the associated
// base::Feature instance. To specify this type of entry use the macro
// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
// base::Feature instance. Choices corresponding to the default state, a
// universally enabled state, and a universally disabled state are
// automatically included. To specify this type of entry use the macro
// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
// the array of choices.
//
// See the documentation of FeatureEntry for details on the fields.
//
// When adding a new choice, add it to the end of the list.
const flags_ui::FeatureEntry kFeatureEntries[] = {
{"in-product-help-demo-mode-choice",
flag_descriptions::kInProductHelpDemoModeName,
flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
FEATURE_WITH_PARAMS_VALUE_TYPE(
feature_engagement::kIPHDemoMode,
feature_engagement::kIPHDemoModeChoiceVariations,
"IPH_DemoMode")},
{"enable-autofill-credit-card-upload",
flag_descriptions::kAutofillCreditCardUploadName,
flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
{"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
SINGLE_VALUE_TYPE_AND_VALUE(
syncer::kSyncServiceURL,
"https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
{"wallet-service-use-sandbox",
flag_descriptions::kWalletServiceUseSandboxName,
flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
autofill::switches::kWalletServiceUseSandbox,
"1",
autofill::switches::kWalletServiceUseSandbox,
"0")},
{"show-autofill-type-predictions",
flag_descriptions::kShowAutofillTypePredictionsName,
flag_descriptions::kShowAutofillTypePredictionsDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(
autofill::features::test::kAutofillShowTypePredictions)},
{"autofill-account-profiles-storage",
flag_descriptions::kAutofillAccountProfilesStorageName,
flag_descriptions::kAutofillAccountProfilesStorageDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfileStorage)},
{"autofill-account-profiles-union-view",
flag_descriptions::kAutofillAccountProfilesUnionViewName,
flag_descriptions::kAutofillAccountProfilesUnionViewDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfilesUnionView)},
{"autofill-ios-delay-between-fields",
flag_descriptions::kAutofillIOSDelayBetweenFieldsName,
flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription,
flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)},
{"fullscreen-promos-manager-skip-internal-limits",
flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
{"fullscreen-viewport-adjustment-experiment",
flag_descriptions::kFullscreenSmoothScrollingName,
flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
{"webpage-default-zoom-from-dynamic-type",
flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
{"webpage-alternative-text-zoom",
flag_descriptions::kWebPageAlternativeTextZoomName,
flag_descriptions::kWebPageAlternativeTextZoomDescription,
flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
{"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
{"omnibox-ui-max-autocomplete-matches",
flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
flags_ui::kOsIos,
FEATURE_WITH_PARAMS_VALUE_TYPE(
omnibox::kUIExperimentMaxAutocompleteMatches,
kOmniboxUIMaxAutocompleteMatchesVariations,
"OmniboxUIMaxAutocompleteVariations")},
{"omnibox-local-history-zero-suggest-beyond-ntp",
flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
{"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
kOmniboxMaxZPSMatchesVariations,
"OmniboxMaxZPSVariations")},
{"omnibox-most-visited-tiles-on-srp",
flag_descriptions::kOmniboxMostVisitedTilesOnSrpName,
flag_descriptions::kOmniboxMostVisitedTilesOnSrpDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(omnibox::kOmniboxMostVisitedTilesOnSrp)},
{"autofill-use-mobile-label-disambiguation",
flag_descriptions::kAutofillUseMobileLabelDisambiguationName,
flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription,
flags_ui::kOsIos,
FEATURE_WITH_PARAMS_VALUE_TYPE(
autofill::features::kAutofillUseMobileLabelDisambiguation,
kAutofillUseMobileLabelDisambiguationVariations,
"AutofillUseMobileLabelDisambiguation")},
{"ios-breadcrumbs", flag_descriptions::kLogBreadcrumbsName,
flag_descriptions::kLogBreadcrumbsDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(breadcrumbs::kLogBreadcrumbs)},
{"force-startup-signin-promo",
flag_descriptions::kForceStartupSigninPromoName,
flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
{"identity-status-consistency",
flag_descriptions::kIdentityStatusConsistencyName,
flag_descriptions::kIdentityStatusConsistencyDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(switches::kIdentityStatusConsistency)},
{"restore-session-from-cache",
flag_descriptions::kRestoreSessionFromCacheName,
flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)},
{"expanded-tab-strip", flag_descriptions::kExpandedTabStripName,
flag_descriptions::kExpandedTabStripDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kExpandedTabStrip)},
{"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
{"screen-time-integration-ios",
flag_descriptions::kScreenTimeIntegrationName,
flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
#endif
{"modern-tab-strip", flag_descriptions::kModernTabStripName,
flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kModernTabStrip)},
{"record-snapshot-size", flag_descriptions::kRecordSnapshotSizeName,
flag_descriptions::kRecordSnapshotSizeDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::features::kRecordSnapshotSize)},
{"default-browser-fullscreen-promo-experiment",
flag_descriptions::kDefaultBrowserFullscreenPromoExperimentName,
flag_descriptions::kDefaultBrowserFullscreenPromoExperimentDescription,
flags_ui::kOsIos,
FEATURE_WITH_PARAMS_VALUE_TYPE(
kDefaultBrowserFullscreenPromoExperiment,
kDefaultBrowserFullscreenPromoExperimentVariations,
"IOSDefaultBrowserFullscreenPromoExperiment")},
{"ios-shared-highlighting-color-change",
flag_descriptions::kIOSSharedHighlightingColorChangeName,
flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
{"ios-shared-highlighting-v2",
flag_descriptions::kIOSSharedHighlightingV2Name,
flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
{"omnibox-new-textfield-implementation",
flag_descriptions::kOmniboxNewImplementationName,
flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)},
{"omnibox-on-focus-suggestions-contextual-web",
flag_descriptions::kOmniboxFocusTriggersContextualWebZeroSuggestName,
flag_descriptions::
kOmniboxFocusTriggersContextualWebZeroSuggestDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(omnibox::kFocusTriggersContextualWebZeroSuggest)},
{"omnibox-on-focus-suggestions-srp",
flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestName,
flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(omnibox::kFocusTriggersSRPZeroSuggest)},
{"omnibox-report-assisted-query-stats",
flag_descriptions::kOmniboxReportAssistedQueryStatsName,
flag_descriptions::kOmniboxReportAssistedQueryStatsDescription,
flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)},
{"omnibox-report-searchbox-stats",
flag_descriptions::kOmniboxReportSearchboxStatsName,
flag_descriptions::kOmniboxReportSearchboxStatsDescription,
flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)},
{"omnibox-fuzzy-url-suggestions",
flag_descriptions::kOmniboxFuzzyUrlSuggestionsName,
flag_descriptions::kOmniboxFuzzyUrlSuggestionsDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(omnibox::kOmniboxFuzzyUrlSuggestions)},
{"start-surface", flag_descriptions::kStartSurfaceName,
flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
kStartSurfaceVariations,
"StartSurface")},
{"autofill-address-verification-in-save-prompt",
flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName,
flag_descriptions::
kEnableAutofillAddressSavePromptAddressVerificationDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(
autofill::features::
kAutofillAddressProfileSavePromptAddressVerificationSupport)},
{"filling-across-affiliated-websites",
flag_descriptions::kFillingAcrossAffiliatedWebsitesName,
flag_descriptions::kFillingAcrossAffiliatedWebsitesDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(
password_manager::features::kFillingAcrossAffiliatedWebsites)},
{"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName,
flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)},
{"wait-threshold-seconds-for-capabilities-api",
flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
flags_ui::kOsIos,
MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
{"autofill-fill-merchant-promo-code-fields",
flag_descriptions::kAutofillFillMerchantPromoCodeFieldsName,
flag_descriptions::kAutofillFillMerchantPromoCodeFieldsDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(
autofill::features::kAutofillFillMerchantPromoCodeFields)},
{"new-overflow-menu", flag_descriptions::kNewOverflowMenuName,
flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kNewOverflowMenu)},
{"overflow-menu-customization",
flag_descriptions::kOverflowMenuCustomizationName,
flag_descriptions::kOverflowMenuCustomizationDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kOverflowMenuCustomization)},
{"enable-lens-in-home-screen-widget",
flag_descriptions::kEnableLensInHomeScreenWidgetName,
flag_descriptions::kEnableLensInHomeScreenWidgetDescription,
flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)},
{"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName,
flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kEnableLensInKeyboard)},
{"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName,
flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kEnableLensInNTP)},
{"enable-lens-context-menu-alt-text",
flag_descriptions::kEnableLensContextMenuAltTextName,
flag_descriptions::kEnableLensContextMenuAltTextDescription,
flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensContextMenuAltText)},
{"enable-lens-in-omnibox-copied-image",
flag_descriptions::kEnableLensInOmniboxCopiedImageName,
flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
{"use-load-simulated-request-for-error-page-navigation",
flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName,
flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)},
{"enable-disco-feed-endpoint",
flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
{"enable-discover-feed-top-sync-promo",
flag_descriptions::kEnableDiscoverFeedTopSyncPromoName,
flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription,
flags_ui::kOsIos,
FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo,
kDiscoverFeedTopSyncPromoVariations,
"EnableDiscoverFeedTopSyncPromo")},
{"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName,
flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos,
FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings,
kFeedHeaderSettingsVariations,
"FeedHeaderSettings")},
{"shared-highlighting-amp",
flag_descriptions::kIOSSharedHighlightingAmpName,
flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
{"enable-commerce-price-tracking",
commerce::flag_descriptions::kCommercePriceTrackingName,
commerce::flag_descriptions::kCommercePriceTrackingDescription,
flags_ui::kOsIos,
FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
commerce::kCommercePriceTrackingVariations,
"CommercePriceTracking")},
{"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kEnableWebChannels)},
{"ntp-view-hierarchy-repair",
flag_descriptions::kNTPViewHierarchyRepairName,
flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
{"synthesized-restore-session",
flag_descriptions::kSynthesizedRestoreSessionName,
flag_descriptions::kSynthesizedRestoreSessionDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::features::kSynthesizedRestoreSession)},
{"enable-password-grouping", flag_descriptions::kPasswordsGroupingName,
flag_descriptions::kPasswordsGroupingDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(password_manager::features::kPasswordsGrouping)},
{"enable-fullscreen-api", flag_descriptions::kEnableFullscreenAPIName,
flag_descriptions::kEnableFullscreenAPIDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::features::kEnableFullscreenAPI)},
{"enable-tailored-security-integration",
flag_descriptions::kTailoredSecurityIntegrationName,
flag_descriptions::kTailoredSecurityIntegrationDescription,
flags_ui::kOsIos,
FEATURE_VALUE_TYPE(safe_browsing::kTailoredSecurityIntegration)},
{"autofill-enable-card-product-name",
flag_descriptions::kAutofillEnableCardProductNameName,
flag_descriptions::kAutofillEnableCardProductNameDescription,
flags_ui::kOsIos,