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 "components/metrics/metrics_state_manager.h" | 5 #include "components/metrics/metrics_state_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/guid.h" | 10 #include "base/guid.h" |
9 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
10 #include "base/metrics/sparse_histogram.h" | 12 #include "base/metrics/sparse_histogram.h" |
11 #include "base/prefs/pref_registry_simple.h" | 13 #include "base/prefs/pref_registry_simple.h" |
12 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
13 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
14 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
15 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
16 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "build/build_config.h" |
17 #include "components/metrics/cloned_install_detector.h" | 20 #include "components/metrics/cloned_install_detector.h" |
18 #include "components/metrics/machine_id_provider.h" | 21 #include "components/metrics/machine_id_provider.h" |
19 #include "components/metrics/metrics_pref_names.h" | 22 #include "components/metrics/metrics_pref_names.h" |
20 #include "components/metrics/metrics_switches.h" | 23 #include "components/metrics/metrics_switches.h" |
21 #include "components/variations/caching_permuted_entropy_provider.h" | 24 #include "components/variations/caching_permuted_entropy_provider.h" |
22 | 25 |
23 namespace metrics { | 26 namespace metrics { |
24 | 27 |
25 namespace { | 28 namespace { |
26 | 29 |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 303 |
301 local_state_->ClearPref(prefs::kMetricsClientID); | 304 local_state_->ClearPref(prefs::kMetricsClientID); |
302 local_state_->ClearPref(prefs::kMetricsLowEntropySource); | 305 local_state_->ClearPref(prefs::kMetricsLowEntropySource); |
303 local_state_->ClearPref(prefs::kMetricsResetIds); | 306 local_state_->ClearPref(prefs::kMetricsResetIds); |
304 | 307 |
305 // Also clear the backed up client info. | 308 // Also clear the backed up client info. |
306 store_client_info_.Run(ClientInfo()); | 309 store_client_info_.Run(ClientInfo()); |
307 } | 310 } |
308 | 311 |
309 } // namespace metrics | 312 } // namespace metrics |
OLD | NEW |