summarylogtreecommitdiffstats
path: root/no-omnibox-suggestion-autocomplete.patch
blob: 0a32b2897d1aaa087329a0e4c677b14b9b0ce0c4 (plain)
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
# Add options '1' and '2' in the flag #omnibox-ui-max-autocomplete-matches.
# Setting '1' effectively disables autocompletion in the url bar (called
# 'omnibox' in chromium internally). This is way easier than diabling all
# history internally, but still allowing to get rid of shoulder surfing.

--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1254,6 +1254,10 @@
     {"15", kMaxZeroSuggestMatches15, base::size(kMaxZeroSuggestMatches15),
      nullptr}};
 
+const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches1[] = {
+    {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "1"}};
+const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches2[] = {
+    {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "2"}};
 const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
     {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
 const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
@@ -1275,6 +1279,10 @@
 
 const FeatureEntry::FeatureVariation
     kOmniboxUIMaxAutocompleteMatchesVariations[] = {
+        {"1 matches", kOmniboxUIMaxAutocompleteMatches1,
+         std::size(kOmniboxUIMaxAutocompleteMatches1), nullptr},
+        {"2 matches", kOmniboxUIMaxAutocompleteMatches2,
+         std::size(kOmniboxUIMaxAutocompleteMatches2), nullptr},
         {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
          std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
         {"4 matches", kOmniboxUIMaxAutocompleteMatches4,