2023-08-16 22:26:55 +00:00
|
|
|
Index: printing/print_settings.cc
|
|
|
|
--- printing/print_settings.cc.orig
|
|
|
|
+++ printing/print_settings.cc
|
2023-09-14 00:49:35 +00:00
|
|
|
@@ -309,7 +309,7 @@ PrintSettings& PrintSettings::operator=(const PrintSet
|
2023-08-16 22:26:55 +00:00
|
|
|
#endif
|
|
|
|
is_modifiable_ = settings.is_modifiable_;
|
|
|
|
pages_per_sheet_ = settings.pages_per_sheet_;
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
|
|
for (const auto& item : settings.advanced_settings_)
|
|
|
|
advanced_settings_.emplace(item.first, item.second.Clone());
|
|
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
2023-09-14 00:49:35 +00:00
|
|
|
@@ -336,7 +336,7 @@ bool PrintSettings::operator==(const PrintSettings& ot
|
2023-08-16 22:26:55 +00:00
|
|
|
#endif
|
|
|
|
is_modifiable_, requested_custom_margins_in_points_,
|
|
|
|
pages_per_sheet_
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
|
|
,
|
|
|
|
advanced_settings_
|
|
|
|
#endif
|
2023-09-14 00:49:35 +00:00
|
|
|
@@ -361,7 +361,7 @@ bool PrintSettings::operator==(const PrintSettings& ot
|
2023-08-16 22:26:55 +00:00
|
|
|
other.is_modifiable_,
|
|
|
|
other.requested_custom_margins_in_points_,
|
|
|
|
other.pages_per_sheet_
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
|
|
,
|
|
|
|
other.advanced_settings_
|
|
|
|
#endif
|
2023-09-14 00:49:35 +00:00
|
|
|
@@ -400,7 +400,7 @@ void PrintSettings::Clear() {
|
2023-08-16 22:26:55 +00:00
|
|
|
#endif
|
|
|
|
is_modifiable_ = true;
|
|
|
|
pages_per_sheet_ = 1;
|
|
|
|
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
|
|
|
|
advanced_settings_.clear();
|
|
|
|
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
|
|
|
#if BUILDFLAG(IS_CHROMEOS)
|