From b4196ca4862327f7012fd6fdc67bc2a2957a89ae Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Thu, 19 Nov 2020 16:05:49 +0100 Subject: [PATCH] build: fix build with enable_printing=false (#26597) --- shell/browser/api/electron_api_printing.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/browser/api/electron_api_printing.cc b/shell/browser/api/electron_api_printing.cc index 9fa734b2eee0..a73005f73579 100644 --- a/shell/browser/api/electron_api_printing.cc +++ b/shell/browser/api/electron_api_printing.cc @@ -59,7 +59,9 @@ printing::PrinterList GetPrinterList() { namespace { +#if BUILDFLAG(ENABLE_PRINTING) using electron::api::GetPrinterList; +#endif void Initialize(v8::Local exports, v8::Local unused,