fix: FTBFS when building with enable_plugins = false
(#44025)
* fix: do not build electron_plugin_info_host_impl.cc when plugins are disabled it fails to build from source with this error: ../../content/public/browser/plugin_service.h:17:2: error: "Plugins should be enabled" 17 | #error "Plugins should be enabled" Co-authored-by: Charles Kerr <charles@charleskerr.com> * fix: FTBFS in printing_utils.cc when ENABLE_PDF is false Co-authored-by: Charles Kerr <charles@charleskerr.com> * fixup! fix: do not build electron_plugin_info_host_impl.cc when plugins are disabled fix BUILD.gn linting Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- 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
5836ea1a78
commit
4d16326b4d
4 changed files with 8 additions and 3 deletions
|
@ -1459,6 +1459,7 @@ void ElectronBrowserClient::
|
|||
render_frame_host);
|
||||
},
|
||||
&render_frame_host));
|
||||
#if BUILDFLAG(ENABLE_PLUGINS)
|
||||
associated_registry.AddInterface<mojom::ElectronPluginInfoHost>(
|
||||
base::BindRepeating(
|
||||
[](content::RenderFrameHost* render_frame_host,
|
||||
|
@ -1469,6 +1470,7 @@ void ElectronBrowserClient::
|
|||
std::move(receiver));
|
||||
},
|
||||
&render_frame_host));
|
||||
#endif
|
||||
#if BUILDFLAG(ENABLE_PRINTING)
|
||||
associated_registry.AddInterface<printing::mojom::PrintManagerHost>(
|
||||
base::BindRepeating(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue