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

Unified Diff: jingle/glue/thread_wrapper.cc

Issue 67673003: Move WeakPtrFactory members in jingle/ classes to the correct locations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « jingle/glue/thread_wrapper.h ('k') | jingle/notifier/listener/non_blocking_push_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/glue/thread_wrapper.cc
diff --git a/jingle/glue/thread_wrapper.cc b/jingle/glue/thread_wrapper.cc
index ab5120dea0d216bed9b6c19b797a81f74b99b363..e2109fe6ae9e5885b82e7ced1ba1897619ba6092 100644
--- a/jingle/glue/thread_wrapper.cc
+++ b/jingle/glue/thread_wrapper.cc
@@ -52,10 +52,10 @@ JingleThreadWrapper::JingleThreadWrapper(
send_allowed_(false),
last_task_id_(0),
pending_send_event_(true, false),
- weak_ptr_factory_(this),
- weak_ptr_(weak_ptr_factory_.GetWeakPtr()) {
+ weak_ptr_factory_(this) {
DCHECK(task_runner->BelongsToCurrentThread());
DCHECK(!talk_base::Thread::Current());
+ weak_ptr_ = weak_ptr_factory_.GetWeakPtr();
talk_base::MessageQueueManager::Add(this);
WrapCurrent();
}
« no previous file with comments | « jingle/glue/thread_wrapper.h ('k') | jingle/notifier/listener/non_blocking_push_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698