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

Side by Side Diff: base/tracking_info.cc

Issue 846663002: Use ThreadData::Now() for TrackingInfo::time_posted initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary expectation Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « base/tracking_info.h ('k') | content/renderer/scheduler/task_queue_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 7 #include <stddef.h>
8 #include "base/tracked_objects.h" 8 #include "base/tracked_objects.h"
9 9
10 namespace base { 10 namespace base {
11 11
12 TrackingInfo::TrackingInfo() 12 TrackingInfo::TrackingInfo()
13 : birth_tally(NULL) { 13 : birth_tally(NULL) {
14 } 14 }
15 15
16 TrackingInfo::TrackingInfo( 16 TrackingInfo::TrackingInfo(
17 const tracked_objects::Location& posted_from, 17 const tracked_objects::Location& posted_from,
18 base::TimeTicks delayed_run_time) 18 base::TimeTicks delayed_run_time)
19 : birth_tally( 19 : birth_tally(
20 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)), 20 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)),
21 time_posted(TimeTicks::Now()), 21 time_posted(tracked_objects::ThreadData::Now()),
22 delayed_run_time(delayed_run_time) { 22 delayed_run_time(delayed_run_time) {
23 } 23 }
24 24
25 TrackingInfo::~TrackingInfo() {} 25 TrackingInfo::~TrackingInfo() {}
26 26
27 } // namespace base 27 } // namespace base
28 28
OLDNEW
« no previous file with comments | « base/tracking_info.h ('k') | content/renderer/scheduler/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698