1 --- src/3rdparty/chromium/printing/print_settings.h.orig 2025-08-15 18:30:00 UTC 2 +++ src/3rdparty/chromium/printing/print_settings.h 3 @@ -25,7 +25,7 @@ 4 #include "base/values.h" 5 #endif 6 7 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 8 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) 9 #include <map> 10 11 #include "base/values.h" 12 @@ -51,7 +51,7 @@ inline constexpr char kMacSystemPrintDialogDataPrintSe 13 "print_settings"; 14 #endif // BUILDFLAG(IS_MAC) 15 16 -#if BUILDFLAG(IS_LINUX) 17 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) 18 inline constexpr char kLinuxSystemPrintDialogDataPrinter[] = "printer_name"; 19 inline constexpr char kLinuxSystemPrintDialogDataPrintSettings[] = 20 "print_settings"; 21 @@ -101,7 +101,7 @@ class COMPONENT_EXPORT(PRINTING_SETTINGS) PrintSetting 22 std::string vendor_id; 23 }; 24 25 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 26 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) 27 using AdvancedSettings = std::map<std::string, base::Value>; 28 #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 29 30 @@ -276,7 +276,7 @@ class COMPONENT_EXPORT(PRINTING_SETTINGS) PrintSetting 31 pages_per_sheet_ = pages_per_sheet; 32 } 33 34 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 35 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) 36 AdvancedSettings& advanced_settings() { return advanced_settings_; } 37 const AdvancedSettings& advanced_settings() const { 38 return advanced_settings_; 39 @@ -429,7 +429,7 @@ class COMPONENT_EXPORT(PRINTING_SETTINGS) PrintSetting 40 // Number of pages per sheet. 41 int pages_per_sheet_; 42 43 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 44 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) 45 // Advanced settings. 46 AdvancedSettings advanced_settings_; 47 #endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 48