Separate LoadEnvironment from CreateEnvironment

This commit is contained in:
Cheng Zhao 2015-01-21 14:00:19 -08:00
parent 854c59df5c
commit 5e58915bdd
4 changed files with 10 additions and 3 deletions

View file

@ -148,6 +148,7 @@ void AtomRendererClient::DidCreateScriptContext(blink::WebFrame* frame,
// Setup node environment for each window.
node::Environment* env = node_bindings_->CreateEnvironment(context);
node_bindings_->LoadEnvironment(env);
// Add atom-shell extended APIs.
atom_bindings_->BindToFrame(frame);