|
@@ -316,9 +316,6 @@ absl::optional<int> ElectronMainDelegate::BasicStartupComplete() {
|
|
|
::switches::kDisableGpuMemoryBufferCompositorResources);
|
|
|
#endif
|
|
|
|
|
|
- content_client_ = std::make_unique<ElectronContentClient>();
|
|
|
- SetContentClient(content_client_.get());
|
|
|
-
|
|
|
return absl::nullopt;
|
|
|
}
|
|
|
|
|
@@ -437,6 +434,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>();
|