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

Issue 213363004: Resetting metrics ids on clump detection. (Closed)

Created:
6 years, 9 months ago by jwd
Modified:
6 years, 9 months ago
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Resetting metrics ids on clump detection. When a cloned install is detected the metrics client id and low entropy source are reset on the next start of Chrome. This is done by setting a pref in local state. The next time either the client id or low entropy source are loaded from the local state, they are first reset. BUG=343273 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260348

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Patch Set 6 : #

Total comments: 12

Patch Set 7 : Finishing off a test, some cleanup, added histogram. #

Total comments: 4

Patch Set 8 : #

Total comments: 8

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -7 lines) Patch
M chrome/browser/metrics/cloned_install_detector.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/metrics/cloned_install_detector.cc View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/metrics/cloned_install_detector_unittest.cc View 1 2 3 4 5 6 3 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 5 chunks +28 lines, -1 line 0 comments Download
M chrome/browser/metrics/metrics_service_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
jwd
Hey Alexei, can you have a look at the strategy I'm using to reset the ...
6 years, 9 months ago (2014-03-26 21:20:27 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/213363004/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/213363004/diff/1/chrome/browser/chrome_browser_main.cc#newcode583 chrome/browser/chrome_browser_main.cc:583: metrics->ResetVariationsState(); Hmm, I'd actually prefer that the logic be ...
6 years, 9 months ago (2014-03-26 21:34:50 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/213363004/diff/20001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/213363004/diff/20001/chrome/browser/metrics/metrics_service.cc#newcode573 chrome/browser/metrics/metrics_service.cc:573: if (recording_enabled) Hmm, this requires the caller to know ...
6 years, 9 months ago (2014-03-28 15:00:17 UTC) #3
jwd
https://codereview.chromium.org/213363004/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/213363004/diff/1/chrome/browser/chrome_browser_main.cc#newcode583 chrome/browser/chrome_browser_main.cc:583: metrics->ResetVariationsState(); On 2014/03/26 21:34:50, Alexei Svitkine wrote: > Hmm, ...
6 years, 9 months ago (2014-03-28 16:23:49 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/213363004/diff/60001/chrome/browser/metrics/cloned_install_detector.cc File chrome/browser/metrics/cloned_install_detector.cc (right): https://codereview.chromium.org/213363004/diff/60001/chrome/browser/metrics/cloned_install_detector.cc#newcode80 chrome/browser/metrics/cloned_install_detector.cc:80: local_state->SetBoolean(prefs::kMetricsResetIds, true); Can this be a callback passed to ...
6 years, 9 months ago (2014-03-28 16:30:47 UTC) #5
Alexei Svitkine (slow)
Looks good modulo a few suggestions below. Once you've verified this is working as expected, ...
6 years, 9 months ago (2014-03-28 17:20:26 UTC) #6
jwd
Still adding tests to metrics service. https://codereview.chromium.org/213363004/diff/60001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/213363004/diff/60001/chrome/browser/chrome_browser_main.cc#newcode581 chrome/browser/chrome_browser_main.cc:581: On 2014/03/28 17:20:26, ...
6 years, 9 months ago (2014-03-28 18:59:20 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/213363004/diff/100001/chrome/browser/metrics/cloned_install_detector_unittest.cc File chrome/browser/metrics/cloned_install_detector_unittest.cc (right): https://codereview.chromium.org/213363004/diff/100001/chrome/browser/metrics/cloned_install_detector_unittest.cc#newcode51 chrome/browser/metrics/cloned_install_detector_unittest.cc:51: EXPECT_TRUE(prefs::kMetricsResetIds); This needs to actually fetch the pref and ...
6 years, 9 months ago (2014-03-28 19:02:49 UTC) #8
jwd
https://codereview.chromium.org/213363004/diff/100001/chrome/browser/metrics/cloned_install_detector_unittest.cc File chrome/browser/metrics/cloned_install_detector_unittest.cc (right): https://codereview.chromium.org/213363004/diff/100001/chrome/browser/metrics/cloned_install_detector_unittest.cc#newcode51 chrome/browser/metrics/cloned_install_detector_unittest.cc:51: EXPECT_TRUE(prefs::kMetricsResetIds); On 2014/03/28 19:02:50, Alexei Svitkine wrote: > This ...
6 years, 9 months ago (2014-03-28 19:43:14 UTC) #9
Alexei Svitkine (slow)
Almost there, I think. https://codereview.chromium.org/213363004/diff/120001/chrome/browser/metrics/metrics_service.h File chrome/browser/metrics/metrics_service.h (right): https://codereview.chromium.org/213363004/diff/120001/chrome/browser/metrics/metrics_service.h#newcode531 chrome/browser/metrics/metrics_service.h:531: // to the kMetricsResetIds pref ...
6 years, 9 months ago (2014-03-28 19:49:02 UTC) #10
jwd
https://codereview.chromium.org/213363004/diff/120001/chrome/browser/metrics/metrics_service.h File chrome/browser/metrics/metrics_service.h (right): https://codereview.chromium.org/213363004/diff/120001/chrome/browser/metrics/metrics_service.h#newcode531 chrome/browser/metrics/metrics_service.h:531: // to the kMetricsResetIds pref being true. This prevents ...
6 years, 9 months ago (2014-03-28 19:58:58 UTC) #11
Alexei Svitkine (slow)
https://codereview.chromium.org/213363004/diff/140001/chrome/browser/metrics/metrics_service.h File chrome/browser/metrics/metrics_service.h (right): https://codereview.chromium.org/213363004/diff/140001/chrome/browser/metrics/metrics_service.h#newcode530 chrome/browser/metrics/metrics_service.h:530: // Set to true when |ResetMetricsIDsIfNecessary is called for ...
6 years, 9 months ago (2014-03-28 20:05:47 UTC) #12
jwd
https://codereview.chromium.org/213363004/diff/140001/chrome/browser/metrics/metrics_service_unittest.cc File chrome/browser/metrics/metrics_service_unittest.cc (right): https://codereview.chromium.org/213363004/diff/140001/chrome/browser/metrics/metrics_service_unittest.cc#newcode379 chrome/browser/metrics/metrics_service_unittest.cc:379: // Ensuere that the low entropy source and client ...
6 years, 9 months ago (2014-03-28 20:18:13 UTC) #13
Alexei Svitkine (slow)
LGTM % the metrics_service.h comment from a previous patchset
6 years, 9 months ago (2014-03-28 20:21:29 UTC) #14
jwd
https://codereview.chromium.org/213363004/diff/140001/chrome/browser/metrics/metrics_service.h File chrome/browser/metrics/metrics_service.h (right): https://codereview.chromium.org/213363004/diff/140001/chrome/browser/metrics/metrics_service.h#newcode530 chrome/browser/metrics/metrics_service.h:530: // Set to true when |ResetMetricsIDsIfNecessary is called for ...
6 years, 9 months ago (2014-03-28 20:27:17 UTC) #15
jwd
The CQ bit was checked by jwd@chromium.org
6 years, 9 months ago (2014-03-28 20:28:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jwd@chromium.org/213363004/170001
6 years, 9 months ago (2014-03-28 20:29:34 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 23:45:08 UTC) #18
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-28 23:45:09 UTC) #19
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 9 months ago (2014-03-28 23:57:49 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jwd@chromium.org/213363004/170001
6 years, 9 months ago (2014-03-29 00:00:50 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-29 01:43:38 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-29 01:43:38 UTC) #23
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 9 months ago (2014-03-29 02:08:36 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jwd@chromium.org/213363004/170001
6 years, 9 months ago (2014-03-29 02:10:19 UTC) #25
commit-bot: I haz the power
6 years, 9 months ago (2014-03-29 03:07:43 UTC) #26
Message was sent while issue was closed.
Change committed as 260348

Powered by Google App Engine
This is Rietveld 408576698