| Index: examples/spinning_cube/spinning_cube_app.cc
|
| diff --git a/examples/spinning_cube/spinning_cube_app.cc b/examples/spinning_cube/spinning_cube_app.cc
|
| index f90f9d1c28f3353c9fd8d5b5cfc6b444365919c6..15b208a018091746b3c33b041558769b89b78fd9 100644
|
| --- a/examples/spinning_cube/spinning_cube_app.cc
|
| +++ b/examples/spinning_cube/spinning_cube_app.cc
|
| @@ -5,6 +5,7 @@
|
| #include <assert.h>
|
|
|
| #include <memory>
|
| +#include <utility>
|
|
|
| #include "base/bind.h"
|
| #include "base/memory/scoped_ptr.h"
|
| @@ -75,9 +76,9 @@ class SpinningCubeApp : public mojo::ApplicationDelegate,
|
|
|
| private:
|
| void SetEventDispatcher() {
|
| - mojo::NativeViewportEventDispatcherPtr ptr;
|
| + mojo::InterfaceHandle<mojo::NativeViewportEventDispatcher> ptr;
|
| dispatcher_binding_.Bind(GetProxy(&ptr));
|
| - viewport_->SetEventDispatcher(ptr.Pass());
|
| + viewport_->SetEventDispatcher(std::move(ptr));
|
| }
|
|
|
| void OnViewportConnectionError() { mojo::RunLoop::current()->Quit(); }
|
|
|