Skip to content

Commit 4977098

Browse files
committed
chore: fix windows build
1 parent 4808975 commit 4977098

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

patches/chromium/printing.patch

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@ majority of changes originally come from these PRs:
1010

1111
This patch also fixes callback for manual user cancellation and success.
1212

13+
diff --git a/chrome/browser/printing/print_job.cc b/chrome/browser/printing/print_job.cc
14+
index 668a14bff461e83b2c6d9d7f23d9674ff081ef12..b0ba36a3c670a21aa5223d03e35502e69d29a7d2 100644
15+
--- a/chrome/browser/printing/print_job.cc
16+
+++ b/chrome/browser/printing/print_job.cc
17+
@@ -356,9 +356,11 @@ void PrintJob::StartPdfToEmfConversion(
18+
content::WebContents* web_contents = worker_->GetWebContents();
19+
content::BrowserContext* context =
20+
web_contents ? web_contents->GetBrowserContext() : nullptr;
21+
+#if 0
22+
PrefService* prefs =
23+
context ? Profile::FromBrowserContext(context)->GetPrefs() : nullptr;
24+
- bool print_with_reduced_rasterization = PrintWithReducedRasterization(prefs);
25+
+#endif
26+
+ bool print_with_reduced_rasterization = PrintWithReducedRasterization(nullptr);
27+
28+
using RenderMode = PdfRenderSettings::Mode;
29+
RenderMode mode;
1330
diff --git a/chrome/browser/printing/print_job_worker.cc b/chrome/browser/printing/print_job_worker.cc
1431
index adb208ba3589e32536527219aaf4e89e3ee3311a..301f6416898445eed814d67901254ef8e5915e2a 100644
1532
--- a/chrome/browser/printing/print_job_worker.cc

0 commit comments

Comments
 (0)