diff options
-rw-r--r-- | ipc/mojo/async_handle_waiter.cc | 8 | ||||
-rw-r--r-- | ipc/mojo/async_handle_waiter.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ipc/mojo/async_handle_waiter.cc b/ipc/mojo/async_handle_waiter.cc index d8455ee..cf908a7 100644 --- a/ipc/mojo/async_handle_waiter.cc +++ b/ipc/mojo/async_handle_waiter.cc @@ -51,10 +51,10 @@ class AsyncHandleWaiter::Context }; AsyncHandleWaiter::AsyncHandleWaiter(base::Callback<void(MojoResult)> callback) - : weak_factory_(this), - context_(new Context(base::MessageLoop::current()->task_runner(), - weak_factory_.GetWeakPtr())), - callback_(callback) { + : callback_(callback), + weak_factory_(this) { + context_ = new Context(base::MessageLoop::current()->task_runner(), + weak_factory_.GetWeakPtr()); } AsyncHandleWaiter::~AsyncHandleWaiter() { diff --git a/ipc/mojo/async_handle_waiter.h b/ipc/mojo/async_handle_waiter.h index 187e2f6..c8515f1 100644 --- a/ipc/mojo/async_handle_waiter.h +++ b/ipc/mojo/async_handle_waiter.h @@ -32,9 +32,9 @@ class IPC_MOJO_EXPORT AsyncHandleWaiter { private: void InvokeCallback(MojoResult result); - base::WeakPtrFactory<AsyncHandleWaiter> weak_factory_; scoped_refptr<Context> context_; base::Callback<void(MojoResult)> callback_; + base::WeakPtrFactory<AsyncHandleWaiter> weak_factory_; DISALLOW_COPY_AND_ASSIGN(AsyncHandleWaiter); }; |