| Index: mojo/examples/aura_demo/window_tree_host_mojo.cc
|
| diff --git a/mojo/examples/aura_demo/window_tree_host_mojo.cc b/mojo/examples/aura_demo/window_tree_host_mojo.cc
|
| index c598dce7748183113df35a7ce4b32545e9a98d1f..26ffedc3437f064b2e253d6829ecc7c92b0d6d76 100644
|
| --- a/mojo/examples/aura_demo/window_tree_host_mojo.cc
|
| +++ b/mojo/examples/aura_demo/window_tree_host_mojo.cc
|
| @@ -27,12 +27,14 @@ ui::ContextFactory* WindowTreeHostMojo::context_factory_ = NULL;
|
| // WindowTreeHostMojo, public:
|
|
|
| WindowTreeHostMojo::WindowTreeHostMojo(
|
| - ScopedNativeViewportHandle viewport_handle,
|
| + NativeViewportPtr viewport,
|
| const gfx::Rect& bounds,
|
| const base::Callback<void()>& compositor_created_callback)
|
| - : native_viewport_(viewport_handle.Pass(), this),
|
| + : native_viewport_(viewport.Pass()),
|
| compositor_created_callback_(compositor_created_callback),
|
| bounds_(bounds) {
|
| + native_viewport_->SetClient(this);
|
| +
|
| AllocationScope scope;
|
| native_viewport_->Create(bounds);
|
|
|
|
|