Chromium Code Reviews| 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() | |
| 12 : birth_tally(static_cast<tracked_objects::Births*>(NULL)) { | |
|
akalin
2012/07/27 17:45:39
any particular reason for the explicit cast? just
jar (doing other things)
2012/07/27 18:15:46
I had vague recollections of some compiler complai
akalin
2012/07/27 20:18:18
I think I'd prefer to yank it out (and I expect it
jar (doing other things)
2012/07/27 21:52:29
Done.
| |
| 13 } | |
| 14 | |
| 11 TrackingInfo::TrackingInfo( | 15 TrackingInfo::TrackingInfo( |
| 12 const tracked_objects::Location& posted_from, | 16 const tracked_objects::Location& posted_from, |
| 13 base::TimeTicks delayed_run_time) | 17 base::TimeTicks delayed_run_time) |
| 14 : birth_tally( | 18 : birth_tally( |
| 15 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)), | 19 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)), |
| 16 time_posted(TimeTicks::Now()), | 20 time_posted(TimeTicks::Now()), |
| 17 delayed_run_time(delayed_run_time) { | 21 delayed_run_time(delayed_run_time) { |
| 18 } | 22 } |
| 19 | 23 |
| 20 TrackingInfo::~TrackingInfo() {} | 24 TrackingInfo::~TrackingInfo() {} |
| 21 | 25 |
| 22 } // namespace base | 26 } // namespace base |
| 23 | 27 |
| OLD | NEW |