summarylogtreecommitdiffstats
path: root/no-omnibox-suggestion-autocomplete.patch
diff options
context:
space:
mode:
authorNoah Vogt2021-12-21 11:04:02 +0100
committerNoah Vogt2021-12-21 11:04:02 +0100
commitc9cdefbf45649f3ad3f3b06f785019f03ab81bef (patch)
treebd486f77347b4f6ea03c636fdedfb7f4e1fa4d9f /no-omnibox-suggestion-autocomplete.patch
parent333a33cdc3a868ae8e9b9f7fbad6d90a214062fc (diff)
downloadaur-c9cdefbf45649f3ad3f3b06f785019f03ab81bef.tar.gz
uppkg -> 96.0.4664.110-2
Diffstat (limited to 'no-omnibox-suggestion-autocomplete.patch')
-rw-r--r--no-omnibox-suggestion-autocomplete.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/no-omnibox-suggestion-autocomplete.patch b/no-omnibox-suggestion-autocomplete.patch
new file mode 100644
index 000000000000..a7ba4ce5f6f4
--- /dev/null
+++ b/no-omnibox-suggestion-autocomplete.patch
@@ -0,0 +1,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,