mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: bump chromium to 108.0.5359.10 (22-x-y) (#36063)
* chore: bump chromium in DEPS to 108.0.5359.4 * chore: update patches * fixup! Change content::PluginList to only run on the UI thread. (cherry picked from commit7b5ec87d4f) Co-Authored-By: Robo <hop2deep@gmail.com> (cherry picked from commit76a618e7d0) * chore: bump chromium in DEPS to 108.0.5359.10 * chore: update patches * fixup printing patch https://github.com/electron/electron/pull/35375 accidentally broke https://github.com/electron/electron/pull/34711 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
committed by
GitHub
parent
b0a5ada661
commit
fa39ee4bb7
@@ -7,6 +7,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "base/base_switches.h"
|
||||
#include "base/command_line.h"
|
||||
@@ -112,6 +113,11 @@
|
||||
#include "chrome/browser/spellchecker/spellcheck_factory.h" // nogncheck
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(ENABLE_PLUGINS)
|
||||
#include "content/public/browser/plugin_service.h"
|
||||
#include "shell/common/plugin_info.h"
|
||||
#endif // BUILDFLAG(ENABLE_PLUGINS)
|
||||
|
||||
namespace electron {
|
||||
|
||||
namespace {
|
||||
@@ -382,6 +388,18 @@ void ElectronBrowserMainParts::PostCreateThreads() {
|
||||
content::GetIOThreadTaskRunner({})->PostTask(
|
||||
FROM_HERE,
|
||||
base::BindOnce(&tracing::TracingSamplerProfiler::CreateOnChildThread));
|
||||
#if BUILDFLAG(ENABLE_PLUGINS)
|
||||
// PluginService can only be used on the UI thread
|
||||
// and ContentClient::AddPlugins gets called for both browser and render
|
||||
// process where the latter will not have UI thread which leads to DCHECK.
|
||||
// Separate the WebPluginInfo registration for these processes.
|
||||
std::vector<content::WebPluginInfo> plugins;
|
||||
auto* plugin_service = content::PluginService::GetInstance();
|
||||
plugin_service->RefreshPlugins();
|
||||
GetInternalPlugins(&plugins);
|
||||
for (const auto& plugin : plugins)
|
||||
plugin_service->RegisterInternalPlugin(plugin, true);
|
||||
#endif
|
||||
}
|
||||
|
||||
void ElectronBrowserMainParts::PostDestroyThreads() {
|
||||
|
||||
Reference in New Issue
Block a user