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

Unified Diff: util/thread/thread_log_messages.cc

Issue 1129793004: ThreadLogMessages: don’t check TLS slot initialization return value (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: DEPS Created 5 years, 7 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 | « DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/thread/thread_log_messages.cc
diff --git a/util/thread/thread_log_messages.cc b/util/thread/thread_log_messages.cc
index f3af8a8371df3b53088a7df01b7b55fdbf25ce34..bada15a2b7ce5695aca8f93cf1624d6381f2e2b9 100644
--- a/util/thread/thread_log_messages.cc
+++ b/util/thread/thread_log_messages.cc
@@ -36,7 +36,8 @@ class ThreadLogMessagesMaster {
public:
ThreadLogMessagesMaster() {
DCHECK(!tls_.initialized());
- CHECK(tls_.Initialize(nullptr));
+ tls_.Initialize(nullptr);
+ DCHECK(tls_.initialized());
DCHECK(!logging::GetLogMessageHandler());
logging::SetLogMessageHandler(LogMessageHandler);
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698