summaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-components_autofill_core_browser_data__model_autofill__i18n__api.h
diff options
context:
space:
mode:
Diffstat (limited to 'www/ungoogled-chromium/files/patch-components_autofill_core_browser_data__model_autofill__i18n__api.h')
-rw-r--r--www/ungoogled-chromium/files/patch-components_autofill_core_browser_data__model_autofill__i18n__api.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/ungoogled-chromium/files/patch-components_autofill_core_browser_data__model_autofill__i18n__api.h b/www/ungoogled-chromium/files/patch-components_autofill_core_browser_data__model_autofill__i18n__api.h
new file mode 100644
index 000000000000..05ca4c2bc4c1
--- /dev/null
+++ b/www/ungoogled-chromium/files/patch-components_autofill_core_browser_data__model_autofill__i18n__api.h
@@ -0,0 +1,16 @@
+--- components/autofill/core/browser/data_model/autofill_i18n_api.h.orig 2023-12-23 12:33:28 UTC
++++ components/autofill/core/browser/data_model/autofill_i18n_api.h
+@@ -15,9 +15,13 @@ namespace autofill::i18n_model_definition {
+ // Country code that represents autofill's legacy address hierarchy model as
+ // stored `kAutofillModelRules`. As a workaround for GCC we declare the
+ // std::string constexpr first.
++// XXX
++#if 0
+ constexpr inline std::string kLegacyHierarchyCountryCodeString{"XX"};
+ constexpr AddressCountryCode kLegacyHierarchyCountryCode =
+ AddressCountryCode(kLegacyHierarchyCountryCodeString);
++#endif
++inline AddressCountryCode kLegacyHierarchyCountryCode = AddressCountryCode("XX");
+
+ // Creates an instance of the address hierarchy model corresponding to the
+ // provided country. All the nodes have empty values, except for the country