Skip to content

Commit

Permalink
chore: fix build with enable_electron_extensions (#20959)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon authored and MarshallOfSound committed Nov 4, 2019
1 parent a034f5d commit afaa1e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions shell/browser/extensions/atom_extensions_browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 2 additions & 1 deletion shell/browser/extensions/atom_extensions_browser_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit afaa1e7

Please sign in to comment.