From 5cf15cdab7f3d055a225dbc50c53d62614250468 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Thu, 15 Sep 2022 19:29:10 +0200 Subject: [PATCH] build: fix building with enable_basic_printing false (#35687) Co-authored-by: Milan Burda --- shell/browser/api/electron_api_web_contents.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100755 => 100644 shell/browser/api/electron_api_web_contents.cc diff --git a/shell/browser/api/electron_api_web_contents.cc b/shell/browser/api/electron_api_web_contents.cc old mode 100755 new mode 100644 index fe5380654170..49a690976e39 --- a/shell/browser/api/electron_api_web_contents.cc +++ b/shell/browser/api/electron_api_web_contents.cc @@ -144,6 +144,10 @@ #include "shell/browser/osr/osr_web_contents_view.h" #endif +#if BUILDFLAG(IS_WIN) +#include "shell/browser/native_window_views.h" +#endif + #if !BUILDFLAG(IS_MAC) #include "ui/aura/window.h" #else @@ -176,9 +180,8 @@ #if BUILDFLAG(IS_WIN) #include "printing/backend/win_helper.h" -#include "shell/browser/native_window_views.h" -#endif #endif +#endif // BUILDFLAG(ENABLE_PRINTING) #if BUILDFLAG(ENABLE_PICTURE_IN_PICTURE) #include "chrome/browser/picture_in_picture/picture_in_picture_window_manager.h"