| 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/chromeos/external_metrics.h" | 5 #include "chrome/browser/chromeos/external_metrics.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/bind.h" | 12 #include "base/bind.h" |
| 11 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
| 12 #include "base/metrics/sparse_histogram.h" | 14 #include "base/metrics/sparse_histogram.h" |
| 13 #include "base/metrics/statistics_recorder.h" | 15 #include "base/metrics/statistics_recorder.h" |
| 14 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/metrics/chromeos_metrics_provider.h" | 17 #include "chrome/browser/metrics/chromeos_metrics_provider.h" |
| 16 #include "components/metrics/metrics_service.h" | 18 #include "components/metrics/metrics_service.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 172 |
| 171 void ExternalMetrics::ScheduleCollector() { | 173 void ExternalMetrics::ScheduleCollector() { |
| 172 bool result = BrowserThread::GetBlockingPool()->PostDelayedWorkerTask( | 174 bool result = BrowserThread::GetBlockingPool()->PostDelayedWorkerTask( |
| 173 FROM_HERE, | 175 FROM_HERE, |
| 174 base::Bind(&chromeos::ExternalMetrics::CollectEventsAndReschedule, this), | 176 base::Bind(&chromeos::ExternalMetrics::CollectEventsAndReschedule, this), |
| 175 base::TimeDelta::FromSeconds(kExternalMetricsCollectionIntervalSeconds)); | 177 base::TimeDelta::FromSeconds(kExternalMetricsCollectionIntervalSeconds)); |
| 176 DCHECK(result); | 178 DCHECK(result); |
| 177 } | 179 } |
| 178 | 180 |
| 179 } // namespace chromeos | 181 } // namespace chromeos |
| OLD | NEW |