Browse Source

build: fix building with enable_basic_printing false (#35691)

Co-authored-by: Milan Burda <[email protected]>
trop[bot] 2 years ago
parent
commit
897808e1d0
1 changed files with 5 additions and 2 deletions
  1. 5 2
      shell/browser/api/electron_api_web_contents.cc

+ 5 - 2
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
@@ -174,9 +178,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"