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

Unified Diff: jingle/glue/thread_wrapper.cc

Issue 585133002: Use SafeWrapCurrent to make sure JingleThreadWrapper ctor does not fail. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | 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 3fde6fd355b0778b99dd6e6fdb024042ce2ab331..d07b7468c798b6fc96a3ac386044d0c8802c3c37 100644
--- a/jingle/glue/thread_wrapper.cc
+++ b/jingle/glue/thread_wrapper.cc
@@ -57,7 +57,7 @@ JingleThreadWrapper::JingleThreadWrapper(
DCHECK(!rtc::Thread::Current());
weak_ptr_ = weak_ptr_factory_.GetWeakPtr();
rtc::MessageQueueManager::Add(this);
- CHECK(WrapCurrent());
+ SafeWrapCurrent();
}
JingleThreadWrapper::~JingleThreadWrapper() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698