fix: override content::ContentMainDelegate::CreateContentClient()
(#35932)
This commit is contained in:
parent
ef00a2a1da
commit
ebb866e63d
2 changed files with 6 additions and 3 deletions
|
@ -317,9 +317,6 @@ absl::optional<int> ElectronMainDelegate::BasicStartupComplete() {
|
|||
::switches::kDisableGpuMemoryBufferCompositorResources);
|
||||
#endif
|
||||
|
||||
content_client_ = std::make_unique<ElectronContentClient>();
|
||||
SetContentClient(content_client_.get());
|
||||
|
||||
return absl::nullopt;
|
||||
}
|
||||
|
||||
|
@ -440,6 +437,11 @@ base::StringPiece ElectronMainDelegate::GetBrowserV8SnapshotFilename() {
|
|||
return ContentMainDelegate::GetBrowserV8SnapshotFilename();
|
||||
}
|
||||
|
||||
content::ContentClient* ElectronMainDelegate::CreateContentClient() {
|
||||
content_client_ = std::make_unique<ElectronContentClient>();
|
||||
return content_client_.get();
|
||||
}
|
||||
|
||||
content::ContentBrowserClient*
|
||||
ElectronMainDelegate::CreateContentBrowserClient() {
|
||||
browser_client_ = std::make_unique<ElectronBrowserClient>();
|
||||
|
|
|
@ -38,6 +38,7 @@ class ElectronMainDelegate : public content::ContentMainDelegate {
|
|||
void PreSandboxStartup() override;
|
||||
void SandboxInitialized(const std::string& process_type) override;
|
||||
absl::optional<int> PreBrowserMain() override;
|
||||
content::ContentClient* CreateContentClient() override;
|
||||
content::ContentBrowserClient* CreateContentBrowserClient() override;
|
||||
content::ContentGpuClient* CreateContentGpuClient() override;
|
||||
content::ContentRendererClient* CreateContentRendererClient() override;
|
||||
|
|
Loading…
Reference in a new issue