no-omnibox-suggestion-autocomplete.patch 1.5 KB

1234567891011121314151617181920212223242526272829
  1. # Add options '1' and '2' in the flag #omnibox-ui-max-autocomplete-matches.
  2. # Setting '1' effectively disables autocompletion in the url bar (called
  3. # 'omnibox' in chromium internally). This is way easier than diabling all
  4. # history internally, but still allowing to get rid of shoulder surfing.
  5. --- a/chrome/browser/about_flags.cc
  6. +++ b/chrome/browser/about_flags.cc
  7. @@ -1254,6 +1254,10 @@
  8. {"15", kMaxZeroSuggestMatches15, base::size(kMaxZeroSuggestMatches15),
  9. nullptr}};
  10. +const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches1[] = {
  11. + {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "1"}};
  12. +const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches2[] = {
  13. + {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "2"}};
  14. const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
  15. {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
  16. const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
  17. @@ -1275,6 +1279,10 @@
  18. const FeatureEntry::FeatureVariation
  19. kOmniboxUIMaxAutocompleteMatchesVariations[] = {
  20. + {"1 matches", kOmniboxUIMaxAutocompleteMatches1,
  21. + base::size(kOmniboxUIMaxAutocompleteMatches1), nullptr},
  22. + {"2 matches", kOmniboxUIMaxAutocompleteMatches2,
  23. + base::size(kOmniboxUIMaxAutocompleteMatches2), nullptr},
  24. {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
  25. base::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
  26. {"4 matches", kOmniboxUIMaxAutocompleteMatches4,