OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/tracking_info.h" | 5 #include "base/tracking_info.h" |
6 | 6 |
7 #include "base/tracked_objects.h" | 7 #include "base/tracked_objects.h" |
8 | 8 |
9 namespace base { | 9 namespace base { |
10 | 10 |
11 TrackingInfo::TrackingInfo( | 11 TrackingInfo::TrackingInfo( |
12 const tracked_objects::Location& posted_from, | 12 const tracked_objects::Location& posted_from, |
13 base::TimeTicks delayed_run_time) | 13 base::TimeTicks delayed_run_time) |
14 : birth_tally( | 14 : birth_tally( |
15 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)), | 15 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)), |
16 time_posted(TimeTicks::Now()), | 16 time_posted(TimeTicks::Now()), |
17 delayed_run_time(delayed_run_time) { | 17 delayed_run_time(delayed_run_time) { |
18 } | 18 } |
19 | 19 |
| 20 TrackingInfo::TrackingInfo() |
| 21 : birth_tally(static_cast<tracked_objects::Births*>(NULL)) { |
| 22 } |
| 23 |
20 TrackingInfo::~TrackingInfo() {} | 24 TrackingInfo::~TrackingInfo() {} |
21 | 25 |
22 } // namespace base | 26 } // namespace base |
23 | 27 |
OLD | NEW |