mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: fix build with enable_electron_extensions (#20959)
This commit is contained in:
committed by
Samuel Attard
parent
a034f5db0d
commit
afaa1e73ab
@@ -233,13 +233,14 @@ AtomExtensionsBrowserClient::GetComponentExtensionResourceManager() {
|
||||
void AtomExtensionsBrowserClient::BroadcastEventToRenderers(
|
||||
extensions::events::HistogramValue histogram_value,
|
||||
const std::string& event_name,
|
||||
std::unique_ptr<base::ListValue> args) {
|
||||
std::unique_ptr<base::ListValue> args,
|
||||
bool dispatch_to_off_the_record_profiles) {
|
||||
if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
|
||||
base::PostTask(
|
||||
FROM_HERE, {BrowserThread::UI},
|
||||
base::BindOnce(&AtomExtensionsBrowserClient::BroadcastEventToRenderers,
|
||||
base::Unretained(this), histogram_value, event_name,
|
||||
std::move(args)));
|
||||
std::move(args), dispatch_to_off_the_record_profiles));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,8 @@ class AtomExtensionsBrowserClient : public extensions::ExtensionsBrowserClient {
|
||||
void BroadcastEventToRenderers(
|
||||
extensions::events::HistogramValue histogram_value,
|
||||
const std::string& event_name,
|
||||
std::unique_ptr<base::ListValue> args) override;
|
||||
std::unique_ptr<base::ListValue> args,
|
||||
bool dispatch_to_off_the_record_profiles) override;
|
||||
extensions::ExtensionCache* GetExtensionCache() override;
|
||||
bool IsBackgroundUpdateAllowed() override;
|
||||
bool IsMinBrowserVersionSupported(const std::string& min_version) override;
|
||||
|
||||
Reference in New Issue
Block a user