From c315ca30c4597dcdca76e00510c255a4ede361bd Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Fri, 21 Nov 2025 12:49:13 -0800 Subject: [PATCH] fix: update GetPlugins to GetPluginsAsync for API rename Upstream renamed PluginService methods: - GetPlugins() -> GetPluginsAsync() (async version takes callback) - GetPluginsSynchronous() -> GetPlugins() (sync version returns directly) Electron uses the async version, so updated the call from GetPlugins() to GetPluginsAsync(). Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7139361 --- shell/browser/electron_plugin_info_host_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/electron_plugin_info_host_impl.cc b/shell/browser/electron_plugin_info_host_impl.cc index 8a09038a05..1c1e66beaf 100644 --- a/shell/browser/electron_plugin_info_host_impl.cc +++ b/shell/browser/electron_plugin_info_host_impl.cc @@ -36,7 +36,7 @@ void ElectronPluginInfoHostImpl::GetPluginInfo(const GURL& url, GetPluginInfoCallback callback) { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); GetPluginInfo_Params params = {url, origin, mime_type}; - PluginService::GetInstance()->GetPlugins( + PluginService::GetInstance()->GetPluginsAsync( base::BindOnce(&ElectronPluginInfoHostImpl::PluginsLoaded, weak_factory_.GetWeakPtr(), params, std::move(callback))); }