One-time reset of UMA client ids and low entropy source.
commit1f74e80d72a3c3a8029836bd618bb22c6351edc0
authorasvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 29 Mar 2014 03:08:35 +0000 (29 03:08 +0000)
committerasvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 29 Mar 2014 03:08:35 +0000 (29 03:08 +0000)
tree95438579076d8a454851f28365da390e5d45759b
parent37d4709a3ae65680a12787aad94504ea03d40d29
One-time reset of UMA client ids and low entropy source.

As we've observed a "cloned install" effect in the wild,
doing this will de-clone such installs. (Which will work
in conjunction with other measures to prevent new instances
of cloned installs appearing).

Renames client id and low entropy source prefs so that they
are re-generated the next time Chrome runs. Makes the code
clear the old prefs, so that they are cleaned up in
existing local state files (in a future milestone, we can
remove them completely - http://crbug.com/357704).

(Note: Does not rename kMetricsPermutedEntropyCache as
that pref is reset when the low entropy id is re-generated.)

BUG=357618
TEST=Running an UMA-enabled build should result in local state
getting new values for user_experience_metrics.low_entropy_source2
and user_experience_metrics.client_id2 and removal of prefs
low_entropy_source and client_id.
NOTRY=true

Review URL: https://codereview.chromium.org/217083002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260349 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/metrics/metrics_log.cc
chrome/browser/metrics/metrics_log_unittest.cc
chrome/browser/metrics/metrics_service.cc
chrome/common/pref_names.cc
chrome/common/pref_names.h
tools/metrics/histograms/histograms.xml