| Index: base/tracked_objects.cc
|
| diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc
|
| index f7fd0c22a62c0519dcacb995ba09d4b66d33443a..21ac0fcaf17e37fcec14fbe05d89b1b743aa1b62 100644
|
| --- a/base/tracked_objects.cc
|
| +++ b/base/tracked_objects.cc
|
| @@ -277,6 +277,26 @@ void ThreadData::TallyADeath(const Births& lifetimes,
|
| }
|
|
|
| // static
|
| +Births* ThreadData::TallyABirthIfActive(const Location& location) {
|
| + if (IsActive()) {
|
| + ThreadData* current_thread_data = current();
|
| + if (current_thread_data) {
|
| + return current_thread_data->TallyABirth(location);
|
| + }
|
| + }
|
| +
|
| + return NULL;
|
| +}
|
| +
|
| +// static
|
| +void ThreadData::TallyADeathIfActive(const Births* the_birth,
|
| + const base::TimeDelta& duration) {
|
| + if (IsActive() && the_birth) {
|
| + current()->TallyADeath(*the_birth, duration);
|
| + }
|
| +}
|
| +
|
| +// static
|
| ThreadData* ThreadData::first() {
|
| base::AutoLock lock(list_lock_);
|
| return first_;
|
|
|