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

Side by Side Diff: components/metrics/profiler/tracking_synchronizer.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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
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 "components/metrics/profiler/tracking_synchronizer.h" 5 #include "components/metrics/profiler/tracking_synchronizer.h"
6 6
7 #include <stddef.h>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
10 #include "base/thread_task_runner_handle.h" 12 #include "base/thread_task_runner_handle.h"
11 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
12 #include "base/tracked_objects.h" 14 #include "base/tracked_objects.h"
13 #include "components/metrics/profiler/tracking_synchronizer_observer.h" 15 #include "components/metrics/profiler/tracking_synchronizer_observer.h"
14 #include "components/variations/variations_associated_data.h" 16 #include "components/variations/variations_associated_data.h"
15 17
16 using base::TimeTicks; 18 using base::TimeTicks;
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 368
367 ++last_used_sequence_number_; 369 ++last_used_sequence_number_;
368 370
369 // Watch out for wrapping to a negative number. 371 // Watch out for wrapping to a negative number.
370 if (last_used_sequence_number_ < 0) 372 if (last_used_sequence_number_ < 0)
371 last_used_sequence_number_ = 1; 373 last_used_sequence_number_ = 1;
372 return last_used_sequence_number_; 374 return last_used_sequence_number_;
373 } 375 }
374 376
375 } // namespace metrics 377 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/profiler/tracking_synchronizer.h ('k') | components/metrics/profiler/tracking_synchronizer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698