| Index: chrome/browser/printing/print_job_worker.cc
|
| diff --git a/chrome/browser/printing/print_job_worker.cc b/chrome/browser/printing/print_job_worker.cc
|
| index 714523eb810d6978badcd7f76ec2a2ad7647d7ae..c85085f8cdaa4d8290795af365ca534ca3533ebb 100644
|
| --- a/chrome/browser/printing/print_job_worker.cc
|
| +++ b/chrome/browser/printing/print_job_worker.cc
|
| @@ -36,6 +36,10 @@
|
| #include "chrome/browser/android/tab_android.h"
|
| #endif
|
|
|
| +#if defined(OS_WIN)
|
| +#include "chrome/common/chrome_features.h"
|
| +#endif
|
| +
|
| using content::BrowserThread;
|
|
|
| namespace printing {
|
| @@ -191,6 +195,10 @@ void PrintJobWorker::SetSettings(
|
| void PrintJobWorker::UpdatePrintSettings(
|
| std::unique_ptr<base::DictionaryValue> new_settings) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| +#if defined(OS_WIN)
|
| + printing_context_->SetPostScriptEnabled(
|
| + base::FeatureList::IsEnabled(features::kPostScriptPrinting));
|
| +#endif
|
| PrintingContext::Result result =
|
| printing_context_->UpdatePrintSettings(*new_settings);
|
| GetSettingsDone(result);
|
| @@ -246,6 +254,10 @@ void PrintJobWorker::GetSettingsWithUI(
|
| }
|
|
|
| void PrintJobWorker::UseDefaultSettings() {
|
| +#if defined(OS_WIN)
|
| + printing_context_->SetPostScriptEnabled(
|
| + base::FeatureList::IsEnabled(features::kPostScriptPrinting));
|
| +#endif
|
| PrintingContext::Result result = printing_context_->UseDefaultSettings();
|
| GetSettingsDone(result);
|
| }
|
|
|