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

Unified Diff: base/trace_event/trace_log.cc

Issue 2421743003: Fix race in TraceLog::AddEventWithTimestamp (Closed)
Patch Set: Remove extra changes. Created 4 years, 2 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: base/trace_event/trace_log.cc
diff --git a/base/trace_event/trace_log.cc b/base/trace_event/trace_log.cc
index 9bb7a8a3ad4cebdd116c2de1c090e19756d7f568..9ceaa2f747797dc1e049c8faf35209193acc7da9 100644
--- a/base/trace_event/trace_log.cc
+++ b/base/trace_event/trace_log.cc
@@ -1368,7 +1368,7 @@ TraceEventHandle TraceLog::AddTraceEventWithThreadIdAndTimestamp(
ThreadTicks thread_now = ThreadNow();
ThreadLocalEventBuffer* thread_local_event_buffer = nullptr;
- if (enabled_modes_ & RECORDING_MODE) {
+ if (*category_group_enabled & RECORDING_MODE) {
// |thread_local_event_buffer_| can be null if the current thread doesn't
// have a message loop or the message loop is blocked.
InitializeThreadLocalEventBufferIfSupported();
« 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