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

Unified Diff: base/message_loop.cc

Issue 7375006: Startup race fixes to tracked objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: awong comments 2 Created 9 years, 5 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 | base/tracked.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
diff --git a/base/message_loop.cc b/base/message_loop.cc
index e45c0d7cadd1c53a70fc98f4ad1fe72295beace1..1def52d0519f935a22be5e3106fc1cb2a4c0936e 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -780,14 +780,12 @@ MessageLoop::PendingTask::PendingTask(
nestable(nestable),
birth_program_counter(posted_from.program_counter()) {
#if defined(TRACK_ALL_TASK_OBJECTS)
+ post_births = NULL;
if (tracked_objects::ThreadData::IsActive()) {
tracked_objects::ThreadData* current_thread_data =
tracked_objects::ThreadData::current();
if (current_thread_data) {
post_births = current_thread_data->TallyABirth(posted_from);
- } else {
- // Shutdown started, and this thread wasn't registered.
- post_births = NULL;
}
}
#endif // defined(TRACK_ALL_TASK_OBJECTS)
« no previous file with comments | « no previous file | base/tracked.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698