refactor: remove redundant CreateExtensionsClient() (#45135)
This commit is contained in:
parent
da8288106b
commit
59ed1db9a2
2 changed files with 1 additions and 14 deletions
|
@ -239,7 +239,7 @@ void RendererClientBase::RenderThreadStarted() {
|
|||
true);
|
||||
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
extensions_client_.reset(CreateExtensionsClient());
|
||||
extensions_client_ = std::make_unique<ElectronExtensionsClient>();
|
||||
extensions::ExtensionsClient::Set(extensions_client_.get());
|
||||
|
||||
extensions_renderer_client_ =
|
||||
|
@ -565,12 +565,6 @@ v8::Local<v8::Context> RendererClientBase::GetContext(
|
|||
return frame->MainWorldScriptContext();
|
||||
}
|
||||
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
extensions::ExtensionsClient* RendererClientBase::CreateExtensionsClient() {
|
||||
return new ElectronExtensionsClient;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool RendererClientBase::IsWebViewFrame(
|
||||
v8::Local<v8::Context> context,
|
||||
content::RenderFrame* render_frame) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue