OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chrome_metrics_service_client.h" | 5 #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
18 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
21 #include "base/metrics/histogram_macros.h" | 21 #include "base/metrics/histogram_macros.h" |
22 #include "base/metrics/persistent_histogram_allocator.h" | 22 #include "base/metrics/persistent_histogram_allocator.h" |
23 #include "base/metrics/statistics_recorder.h" | 23 #include "base/metrics/statistics_recorder.h" |
24 #include "base/path_service.h" | 24 #include "base/path_service.h" |
25 #include "base/rand_util.h" | 25 #include "base/rand_util.h" |
26 #include "base/strings/string16.h" | 26 #include "base/strings/string16.h" |
27 #include "base/threading/platform_thread.h" | 27 #include "base/threading/platform_thread.h" |
| 28 #include "base/threading/sequenced_worker_pool.h" |
28 #include "base/threading/thread_task_runner_handle.h" | 29 #include "base/threading/thread_task_runner_handle.h" |
29 #include "build/build_config.h" | 30 #include "build/build_config.h" |
30 #include "chrome/browser/browser_process.h" | 31 #include "chrome/browser/browser_process.h" |
31 #include "chrome/browser/chrome_notification_types.h" | 32 #include "chrome/browser/chrome_notification_types.h" |
32 #include "chrome/browser/google/google_brand.h" | 33 #include "chrome/browser/google/google_brand.h" |
33 #include "chrome/browser/history/history_service_factory.h" | 34 #include "chrome/browser/history/history_service_factory.h" |
34 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" | 35 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" |
35 #include "chrome/browser/metrics/chrome_stability_metrics_provider.h" | 36 #include "chrome/browser/metrics/chrome_stability_metrics_provider.h" |
36 #include "chrome/browser/metrics/https_engagement_metrics_provider.h" | 37 #include "chrome/browser/metrics/https_engagement_metrics_provider.h" |
37 #include "chrome/browser/metrics/metrics_reporting_state.h" | 38 #include "chrome/browser/metrics/metrics_reporting_state.h" |
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 void ChromeMetricsServiceClient::OnSyncPrefsChanged(bool must_purge) { | 956 void ChromeMetricsServiceClient::OnSyncPrefsChanged(bool must_purge) { |
956 if (!ukm_service_) | 957 if (!ukm_service_) |
957 return; | 958 return; |
958 if (must_purge) { | 959 if (must_purge) { |
959 ukm_service_->Purge(); | 960 ukm_service_->Purge(); |
960 ukm_service_->ResetClientId(); | 961 ukm_service_->ResetClientId(); |
961 } | 962 } |
962 // Signal service manager to enable/disable UKM based on new state. | 963 // Signal service manager to enable/disable UKM based on new state. |
963 UpdateRunningServices(); | 964 UpdateRunningServices(); |
964 } | 965 } |
OLD | NEW |