Separate the creation function of NodeBindings for renderer and browser.
On Windows the message loop integration would need two different implementations.
This commit is contained in:
parent
d82f2dd835
commit
8bdf06131b
4 changed files with 11 additions and 5 deletions
|
@ -20,7 +20,7 @@ AtomBrowserMainParts* AtomBrowserMainParts::self_ = NULL;
|
|||
AtomBrowserMainParts::AtomBrowserMainParts()
|
||||
: atom_bindings_(new AtomBrowserBindings),
|
||||
browser_(new Browser),
|
||||
node_bindings_(NodeBindings::Create(true)) {
|
||||
node_bindings_(NodeBindings::CreateInBrowser()) {
|
||||
DCHECK(!self_) << "Cannot have two AtomBrowserMainParts";
|
||||
self_ = this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue