summarylogtreecommitdiffstats
path: root/no-omnibox-suggestion-autocomplete.patch
blob: a7ba4ce5f6f4be56f24a0891af11c2dfadd09338 (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,
+         base::size(kOmniboxUIMaxAutocompleteMatches1), nullptr},
+        {"2 matches", kOmniboxUIMaxAutocompleteMatches2,
+         base::size(kOmniboxUIMaxAutocompleteMatches2), nullptr},
         {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
          base::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
         {"4 matches", kOmniboxUIMaxAutocompleteMatches4,