mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: fix windows build
This commit is contained in:
@@ -10,6 +10,23 @@ majority of changes originally come from these PRs:
|
||||
|
||||
This patch also fixes callback for manual user cancellation and success.
|
||||
|
||||
diff --git a/chrome/browser/printing/print_job.cc b/chrome/browser/printing/print_job.cc
|
||||
index 668a14bff461e83b2c6d9d7f23d9674ff081ef12..b0ba36a3c670a21aa5223d03e35502e69d29a7d2 100644
|
||||
--- a/chrome/browser/printing/print_job.cc
|
||||
+++ b/chrome/browser/printing/print_job.cc
|
||||
@@ -356,9 +356,11 @@ void PrintJob::StartPdfToEmfConversion(
|
||||
content::WebContents* web_contents = worker_->GetWebContents();
|
||||
content::BrowserContext* context =
|
||||
web_contents ? web_contents->GetBrowserContext() : nullptr;
|
||||
+#if 0
|
||||
PrefService* prefs =
|
||||
context ? Profile::FromBrowserContext(context)->GetPrefs() : nullptr;
|
||||
- bool print_with_reduced_rasterization = PrintWithReducedRasterization(prefs);
|
||||
+#endif
|
||||
+ bool print_with_reduced_rasterization = PrintWithReducedRasterization(nullptr);
|
||||
|
||||
using RenderMode = PdfRenderSettings::Mode;
|
||||
RenderMode mode;
|
||||
diff --git a/chrome/browser/printing/print_job_worker.cc b/chrome/browser/printing/print_job_worker.cc
|
||||
index adb208ba3589e32536527219aaf4e89e3ee3311a..301f6416898445eed814d67901254ef8e5915e2a 100644
|
||||
--- a/chrome/browser/printing/print_job_worker.cc
|
||||
|
||||
Reference in New Issue
Block a user