Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Unified Diff: ipc/mojo/async_handle_waiter.cc

Issue 848533003: Move WeakPtrFactory to the end of AsyncHandleWaiter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/mojo/async_handle_waiter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/async_handle_waiter.cc
diff --git a/ipc/mojo/async_handle_waiter.cc b/ipc/mojo/async_handle_waiter.cc
index d8455ee950c27d6ba991a719159c8ca8d7b3bc85..cf908a71e4dc8242f96b320d50532ff0b88f745b 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() {
« no previous file with comments | « ipc/mojo/async_handle_waiter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698