Skip to content

Commit e2037f5

Browse files
committed
update printing.patch
1 parent d8318aa commit e2037f5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

patches/chromium/printing.patch

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ majority of changes originally come from these PRs:
1111
This patch also fixes callback for manual user cancellation and success.
1212

1313
diff --git a/chrome/browser/printing/print_job.cc b/chrome/browser/printing/print_job.cc
14-
index 668a14bff461e83b2c6d9d7f23d9674ff081ef12..b0ba36a3c670a21aa5223d03e35502e69d29a7d2 100644
14+
index 668a14bff461e83b2c6d9d7f23d9674ff081ef12..674f141e80c0316fd47558c4d428a9706ac5a7b6 100644
1515
--- a/chrome/browser/printing/print_job.cc
1616
+++ b/chrome/browser/printing/print_job.cc
17-
@@ -356,9 +356,11 @@ void PrintJob::StartPdfToEmfConversion(
17+
@@ -353,12 +353,14 @@ void PrintJob::StartPdfToEmfConversion(
18+
// TODO(thestig): Figure out why crbug.com/1083911 occurred, which is likely
19+
// because |web_contents| was null. As a result, this section has many more
20+
// pointer checks to avoid crashing.
21+
+#if 0
1822
content::WebContents* web_contents = worker_->GetWebContents();
1923
content::BrowserContext* context =
2024
web_contents ? web_contents->GetBrowserContext() : nullptr;
21-
+#if 0
2225
PrefService* prefs =
2326
context ? Profile::FromBrowserContext(context)->GetPrefs() : nullptr;
2427
- bool print_with_reduced_rasterization = PrintWithReducedRasterization(prefs);

0 commit comments

Comments
 (0)