Add a new type of NodeBindings
This commit is contained in:
parent
aac934b34e
commit
b467c3939e
11 changed files with 57 additions and 38 deletions
|
@ -216,7 +216,7 @@ std::vector<std::string> ParseSchemesCLISwitch(const char* switch_name) {
|
|||
|
||||
AtomRendererClient::AtomRendererClient()
|
||||
: node_integration_initialized_(false),
|
||||
node_bindings_(NodeBindings::Create(false)),
|
||||
node_bindings_(NodeBindings::Create(NodeBindings::RENDERER)),
|
||||
atom_bindings_(new AtomBindings) {
|
||||
isolated_world_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
|
||||
switches::kContextIsolation);
|
||||
|
|
|
@ -28,7 +28,7 @@ WebWorkerObserver* WebWorkerObserver::GetCurrent() {
|
|||
}
|
||||
|
||||
WebWorkerObserver::WebWorkerObserver()
|
||||
: node_bindings_(NodeBindings::Create(false)),
|
||||
: node_bindings_(NodeBindings::Create(NodeBindings::WORKER)),
|
||||
atom_bindings_(new AtomBindings) {
|
||||
lazy_tls.Pointer()->Set(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue