fix: when building with enable_plugins=false (#20354)
* fix: when building with enable_plugins=false * build: exclude printing service to avoid patch * build: update plugins patch from upstream
This commit is contained in:
parent
2fad53e66b
commit
bb2ab01f99
5 changed files with 90 additions and 4 deletions
|
@ -48,6 +48,7 @@
|
|||
#include "native_mate/converter.h"
|
||||
#include "native_mate/dictionary.h"
|
||||
#include "native_mate/object_template_builder_deprecated.h"
|
||||
#include "ppapi/buildflags/buildflags.h"
|
||||
#include "shell/browser/api/atom_api_browser_window.h"
|
||||
#include "shell/browser/api/atom_api_debugger.h"
|
||||
#include "shell/browser/api/atom_api_session.h"
|
||||
|
@ -898,10 +899,12 @@ void WebContents::RenderProcessGone(base::TerminationStatus status) {
|
|||
|
||||
void WebContents::PluginCrashed(const base::FilePath& plugin_path,
|
||||
base::ProcessId plugin_pid) {
|
||||
#if BUILDFLAG(ENABLE_PLUGINS)
|
||||
content::WebPluginInfo info;
|
||||
auto* plugin_service = content::PluginService::GetInstance();
|
||||
plugin_service->GetPluginInfoByPath(plugin_path, &info);
|
||||
Emit("plugin-crashed", info.name, info.version);
|
||||
#endif // BUILDFLAG(ENABLE_PLUIGNS)
|
||||
}
|
||||
|
||||
void WebContents::MediaStartedPlaying(const MediaPlayerInfo& video_type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue