Skip to content

Commit

Permalink
Dispatch SiteInstanceGotProcess() only when both process and site are…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc committed Jan 25, 2024
1 parent 6ad8028 commit a871198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/browser/electron_browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ void ElectronBrowserClient::GetAdditionalWebUISchemes(
additional_schemes->push_back(content::kChromeDevToolsScheme);
}

void ElectronBrowserClient::SiteInstanceGotProcess(
void ElectronBrowserClient::SiteInstanceGotProcessAndSite(
content::SiteInstance* site_instance) {
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
auto* browser_context =
Expand Down
3 changes: 2 additions & 1 deletion shell/browser/electron_browser_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ class ElectronBrowserClient : public content::ContentBrowserClient,
scoped_refptr<net::HttpResponseHeaders> response_headers,
bool first_auth_attempt,
LoginAuthRequiredCallback auth_required_callback) override;
void SiteInstanceGotProcess(content::SiteInstance* site_instance) override;
void SiteInstanceGotProcessAndSite(
content::SiteInstance* site_instance) override;
std::vector<std::unique_ptr<blink::URLLoaderThrottle>>
CreateURLLoaderThrottles(
const network::ResourceRequest& request,
Expand Down

0 comments on commit a871198

Please sign in to comment.