refactor: remove unused extension content script code (#27570)
This code was leftover from the old JS extensions implementation.
This commit is contained in:
parent
a5e9af330f
commit
20a71be849
7 changed files with 0 additions and 75 deletions
|
@ -254,34 +254,6 @@ void ElectronRendererClient::SetupMainWorldOverrides(
|
|||
&isolated_bundle_params, &isolated_bundle_args, nullptr);
|
||||
}
|
||||
|
||||
void ElectronRendererClient::SetupExtensionWorldOverrides(
|
||||
v8::Handle<v8::Context> context,
|
||||
content::RenderFrame* render_frame,
|
||||
int world_id) {
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
NOTREACHED();
|
||||
#else
|
||||
auto* isolate = context->GetIsolate();
|
||||
|
||||
std::vector<v8::Local<v8::String>> isolated_bundle_params = {
|
||||
node::FIXED_ONE_BYTE_STRING(isolate, "nodeProcess"),
|
||||
node::FIXED_ONE_BYTE_STRING(isolate, "isolatedWorld"),
|
||||
node::FIXED_ONE_BYTE_STRING(isolate, "worldId")};
|
||||
|
||||
auto* env = GetEnvironment(render_frame);
|
||||
if (!env)
|
||||
return;
|
||||
|
||||
std::vector<v8::Local<v8::Value>> isolated_bundle_args = {
|
||||
env->process_object(),
|
||||
GetContext(render_frame->GetWebFrame(), isolate)->Global(),
|
||||
v8::Integer::New(isolate, world_id)};
|
||||
|
||||
util::CompileAndCall(context, "electron/js2c/content_script_bundle",
|
||||
&isolated_bundle_params, &isolated_bundle_args, nullptr);
|
||||
#endif
|
||||
}
|
||||
|
||||
node::Environment* ElectronRendererClient::GetEnvironment(
|
||||
content::RenderFrame* render_frame) const {
|
||||
if (injected_frames_.find(render_frame) == injected_frames_.end())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue