chore: fix build with enable_electron_extensions (#20959)
This commit is contained in:
parent
a034f5db0d
commit
afaa1e73ab
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue