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

Side by Side Diff: chrome/browser/metrics/metrics_state_manager.cc

Issue 293623003: [Metrics] Move CachingPermutedEntropyProvider into the variations component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a newline Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_state_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/metrics_state_manager.h" 5 #include "chrome/browser/metrics/metrics_state_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/guid.h" 8 #include "base/guid.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/metrics/sparse_histogram.h" 10 #include "base/metrics/sparse_histogram.h"
11 #include "base/prefs/pref_registry_simple.h" 11 #include "base/prefs/pref_registry_simple.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "base/rand_util.h" 13 #include "base/rand_util.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "chrome/browser/metrics/cloned_install_detector.h" 16 #include "chrome/browser/metrics/cloned_install_detector.h"
17 #include "chrome/browser/metrics/machine_id_provider.h" 17 #include "chrome/browser/metrics/machine_id_provider.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/metrics/caching_permuted_entropy_provider.h"
20 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "components/variations/caching_permuted_entropy_provider.h"
21 21
22 #if defined(OS_CHROMEOS) 22 #if defined(OS_CHROMEOS)
23 #include "chrome/browser/chromeos/settings/cros_settings.h" 23 #include "chrome/browser/chromeos/settings/cros_settings.h"
24 #endif 24 #endif
25 25
26 namespace metrics { 26 namespace metrics {
27 27
28 namespace { 28 namespace {
29 29
30 // The argument used to generate a non-identifying entropy source. We want no 30 // The argument used to generate a non-identifying entropy source. We want no
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 DCHECK(client_id_.empty()); 225 DCHECK(client_id_.empty());
226 DCHECK_EQ(kLowEntropySourceNotSet, low_entropy_source_); 226 DCHECK_EQ(kLowEntropySourceNotSet, low_entropy_source_);
227 227
228 local_state_->ClearPref(prefs::kMetricsClientID); 228 local_state_->ClearPref(prefs::kMetricsClientID);
229 local_state_->ClearPref(prefs::kMetricsLowEntropySource); 229 local_state_->ClearPref(prefs::kMetricsLowEntropySource);
230 local_state_->ClearPref(prefs::kMetricsResetIds); 230 local_state_->ClearPref(prefs::kMetricsResetIds);
231 } 231 }
232 232
233 } // namespace metrics 233 } // namespace metrics
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_state_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698