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:
Cheng Zhao 2013-07-04 19:47:48 +08:00
parent d82f2dd835
commit 8bdf06131b
4 changed files with 11 additions and 5 deletions

View file

@ -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;
}