| OLD | NEW |
| 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 "chrome/browser/metrics/tracking_synchronizer.h" | 5 #include "chrome/browser/metrics/tracking_synchronizer.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/process_util.h" | |
| 10 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
| 11 #include "base/tracked_objects.h" | 10 #include "base/tracked_objects.h" |
| 12 #include "chrome/browser/metrics/tracking_synchronizer_observer.h" | 11 #include "chrome/browser/metrics/tracking_synchronizer_observer.h" |
| 13 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 14 #include "content/public/browser/profiler_controller.h" | 13 #include "content/public/browser/profiler_controller.h" |
| 15 #include "content/public/common/process_type.h" | 14 #include "content/public/common/process_type.h" |
| 16 | 15 |
| 17 using base::TimeTicks; | 16 using base::TimeTicks; |
| 18 using content::BrowserThread; | 17 using content::BrowserThread; |
| 19 | 18 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 288 |
| 290 ++last_used_sequence_number_; | 289 ++last_used_sequence_number_; |
| 291 | 290 |
| 292 // Watch out for wrapping to a negative number. | 291 // Watch out for wrapping to a negative number. |
| 293 if (last_used_sequence_number_ < 0) | 292 if (last_used_sequence_number_ < 0) |
| 294 last_used_sequence_number_ = 1; | 293 last_used_sequence_number_ = 1; |
| 295 return last_used_sequence_number_; | 294 return last_used_sequence_number_; |
| 296 } | 295 } |
| 297 | 296 |
| 298 } // namespace chrome_browser_metrics | 297 } // namespace chrome_browser_metrics |
| OLD | NEW |