fix: build failure when printing is disabled (#46284)
fix: ftbfs when printing is disabled Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
3e2aa2f443
commit
32c352bff5
3 changed files with 6 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
#include "electron/buildflags/buildflags.h"
|
||||
#include "media/base/media_switches.h"
|
||||
#include "net/base/features.h"
|
||||
#include "printing/buildflags/buildflags.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
#include "third_party/blink/public/common/features.h"
|
||||
|
||||
|
@ -60,7 +61,7 @@ void InitializeFeatureList() {
|
|||
std::string(",") + features::kMacWebContentsOcclusion.name;
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
#if BUILDFLAG(IS_LINUX) && BUILDFLAG(ENABLE_PRINTING)
|
||||
disable_features +=
|
||||
// EnableOopPrintDrivers is still a bit half-baked on Linux and
|
||||
// causes crashes when trying to show dialogs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue