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

Issue 18338004: Don't use StaticMemorySingletonTraits for TraceLog. (Closed)

Created:
7 years, 5 months ago by jam
Modified:
7 years, 5 months ago
Reviewers:
scheib, nduca
CC:
chromium-reviews, dsinclair+watch_chromium.org, erikwright+watch_chromium.org
Visibility:
Public.

Description

Don't use StaticMemorySingletonTraits for TraceLog. Let's try this out as it's not clear to me that the extra complexity is needed. If code in the field is using this object at shutdown after the exit manager has destructed, then there'll be null dereferences now anyways. Also, we shouldn't have C++ static objects as they should all be using Singleton. BUG=258047 R=nduca@chromium.org, scheib@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210446

Patch Set 1 : #

Patch Set 2 : use LeakySingletonTraits as TraceLog is used on non-joinable threads #

Total comments: 2

Patch Set 3 : no need for ManualTestSetUp anymore per scheib #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -142 lines) Patch
M base/debug/trace_event_impl.h View 3 chunks +2 lines, -5 lines 0 comments Download
M base/debug/trace_event_impl.cc View 1 4 chunks +3 lines, -6 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 34 chunks +11 lines, -130 lines 0 comments Download
M base/debug/trace_event_win_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M base/test/trace_event_analyzer_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
jam
7 years, 5 months ago (2013-07-08 19:23:59 UTC) #1
scheib
lgtm https://codereview.chromium.org/18338004/diff/7003/base/debug/trace_event_unittest.cc File base/debug/trace_event_unittest.cc (left): https://codereview.chromium.org/18338004/diff/7003/base/debug/trace_event_unittest.cc#oldcode1524 base/debug/trace_event_unittest.cc:1524: // Test trace calls made after tracing singleton ...
7 years, 5 months ago (2013-07-08 22:58:57 UTC) #2
jam
nduca: ptal, Vincent wanted to get your thoughts on this as well https://codereview.chromium.org/18338004/diff/7003/base/debug/trace_event_unittest.cc File base/debug/trace_event_unittest.cc ...
7 years, 5 months ago (2013-07-08 23:03:10 UTC) #3
nduca
7 years, 5 months ago (2013-07-08 23:09:05 UTC) #4
fine by me, lgtm

Powered by Google App Engine
This is Rietveld 408576698