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

Issue 22676002: Add UMA to report Preferences File Corruption (Closed)

Created:
7 years, 4 months ago by bbudge
Modified:
7 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add UMA to report Preferences File Corruption Adds PrefMetricsService methods to track changes to user preferences that happen outside of Chrome and report discrepancies via UMA. BUG=266569 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221944

Patch Set 1 : #

Patch Set 2 : Don't change local settings during shutdown. #

Patch Set 3 : #

Patch Set 4 : Make sure local_state is initialized. #

Total comments: 20

Patch Set 5 : Address comments. #

Patch Set 6 : Add unit tests. #

Patch Set 7 : Rework unit tests. #

Patch Set 8 : Fix compile error. #

Total comments: 10

Patch Set 9 : Rebase. #

Total comments: 4

Patch Set 10 : Address second round of comments. #

Patch Set 11 : Add TODO for Device ID API use. #

Total comments: 8

Patch Set 12 : Fix normalizing "Unchanged" histogram. #

Patch Set 13 : Rebase. #

Patch Set 14 : Track more prefs, tweak shutdown guards. #

Patch Set 15 : Don't track pref changes in tests. #

Patch Set 16 : Using hash seed resource. #

Total comments: 6

Patch Set 17 : Address Dominic's comments. #

Patch Set 18 : Fix Windows compile. #

Total comments: 8

Patch Set 19 : Address Dominic's comments. #

Patch Set 20 : Rebase to fix histograms.xml. #

Patch Set 21 : Fix Android (no pinned_tabs pref). #

Patch Set 22 : #

Patch Set 23 : Don't check prefs on Android. #

Patch Set 24 : Fix Aura? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+610 lines, -18 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_metrics_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +52 lines, -4 lines 0 comments Download
M chrome/browser/prefs/pref_metrics_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +226 lines, -14 lines 0 comments Download
A chrome/browser/prefs/pref_metrics_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +274 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +45 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
bbudge
battre and mnissler for everything. mpearson for OWNERS on tools/metrics/histograms There is some problem on ...
7 years, 4 months ago (2013-08-15 01:16:48 UTC) #1
Mark P
How do you plan to normalize these histograms? For instance, suppose the "changed" histogram has ...
7 years, 4 months ago (2013-08-15 01:21:04 UTC) #2
Mattias Nissler (ping if slow)
Some high-level comments: 1. What Mark says. One way could be to record a sample ...
7 years, 4 months ago (2013-08-15 10:14:51 UTC) #3
bbudge
There are still a few tests that break because this writes to local state. I'm ...
7 years, 4 months ago (2013-08-15 17:33:48 UTC) #4
bbudge
Added unit tests. PTAL
7 years, 4 months ago (2013-08-19 22:30:41 UTC) #5
bbudge
On 2013/08/19 22:30:41, bbudge1 wrote: > Added unit tests. PTAL Hold off on reviewing. I ...
7 years, 4 months ago (2013-08-20 05:00:30 UTC) #6
bbudge
I think this is ready for another round of review.
7 years, 4 months ago (2013-08-20 12:07:39 UTC) #7
Mattias Nissler (ping if slow)
LGTM w/ nits. https://codereview.chromium.org/22676002/diff/46001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/22676002/diff/46001/chrome/browser/prefs/pref_metrics_service.cc#newcode15 chrome/browser/prefs/pref_metrics_service.cc:15: #include "chrome/browser/extensions/api/music_manager_private/device_id.h" On 2013/08/15 17:33:49, bbudge1 ...
7 years, 4 months ago (2013-08-20 12:53:54 UTC) #8
Mark P
The histograms.xml file is not up to date. For instance, it references enums that does ...
7 years, 4 months ago (2013-08-20 14:14:57 UTC) #9
bbudge
On 2013/08/20 14:14:57, Mark P (likely away 8.26-9.15) wrote: > The histograms.xml file is not ...
7 years, 4 months ago (2013-08-20 14:46:42 UTC) #10
Mark P
https://codereview.chromium.org/22676002/diff/101001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/22676002/diff/101001/tools/metrics/histograms/histograms.xml#newcode13478 tools/metrics/histograms/histograms.xml:13478: + profile is loaded. How is "not present" different ...
7 years, 4 months ago (2013-08-20 14:56:18 UTC) #11
bbudge
I think I addressed everything. We are still tracking down why a browser_test (ReOpenedWithID) is ...
7 years, 4 months ago (2013-08-20 18:17:50 UTC) #12
Mark P
https://codereview.chromium.org/22676002/diff/107001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/22676002/diff/107001/tools/metrics/histograms/histograms.xml#newcode13473 tools/metrics/histograms/histograms.xml:13473: + been removed from local state. This implies that ...
7 years, 4 months ago (2013-08-20 19:26:25 UTC) #13
bbudge
TrackedPreferenceRemoved histogram renamed, TrackedPreferenceCleared. Removed the TrackedPreferencesChecked boolean histogram and added a new TrackedPreferenceUnchanged histogram, ...
7 years, 4 months ago (2013-08-20 20:43:34 UTC) #14
bbudge
NOTE: I also added "prefs::kGoogleServicesLastUsername" to the list of tracked preferences. see crbug.com/276152
7 years, 4 months ago (2013-08-20 20:46:04 UTC) #15
bbudge
I'm making PrefMetricsService work with existing browser_tests, which may stress shutdown behavior and which don't ...
7 years, 4 months ago (2013-08-21 17:44:33 UTC) #16
Mark P
At this point, histograms.xml lgtm
7 years, 4 months ago (2013-08-21 22:27:03 UTC) #17
battre
https://codereview.chromium.org/22676002/diff/160001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/22676002/diff/160001/chrome/browser/prefs/pref_metrics_service.cc#newcode267 chrome/browser/prefs/pref_metrics_service.cc:267: if (BrowserShuttingDown()) Don't you want to move this down ...
7 years, 3 months ago (2013-09-02 08:33:46 UTC) #18
bbudge
Addressed comments. PTAL https://codereview.chromium.org/22676002/diff/160001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/22676002/diff/160001/chrome/browser/prefs/pref_metrics_service.cc#newcode267 chrome/browser/prefs/pref_metrics_service.cc:267: if (BrowserShuttingDown()) I added these guards ...
7 years, 3 months ago (2013-09-04 15:00:09 UTC) #19
bbudge
battre@ Ping
7 years, 3 months ago (2013-09-05 17:29:30 UTC) #20
battre
Sorry, I found some more issues. Please feel free to find a reviewer in your ...
7 years, 3 months ago (2013-09-06 11:35:32 UTC) #21
bbudge
https://codereview.chromium.org/22676002/diff/175001/chrome/browser/prefs/pref_metrics_service.cc File chrome/browser/prefs/pref_metrics_service.cc (right): https://codereview.chromium.org/22676002/diff/175001/chrome/browser/prefs/pref_metrics_service.cc#newcode71 chrome/browser/prefs/pref_metrics_service.cc:71: profile_name_ = profile_->GetProfileName(); On 2013/09/06 11:35:33, battre wrote: > ...
7 years, 3 months ago (2013-09-06 13:31:33 UTC) #22
bbudge
+pam for optional review. I think it's ready to land.
7 years, 3 months ago (2013-09-06 16:44:05 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22676002/189001
7 years, 3 months ago (2013-09-06 23:04:27 UTC) #24
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=24245
7 years, 3 months ago (2013-09-06 23:19:37 UTC) #25
bbudge
-Pam +John for browser_resources.grd
7 years, 3 months ago (2013-09-06 23:25:29 UTC) #26
jam
On 2013/09/06 23:25:29, bbudge1 wrote: > -Pam > +John for browser_resources.grd
7 years, 3 months ago (2013-09-06 23:28:12 UTC) #27
jam
On 2013/09/06 23:25:29, bbudge1 wrote: > -Pam > +John for browser_resources.grd lgtm
7 years, 3 months ago (2013-09-06 23:28:19 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22676002/189001
7 years, 3 months ago (2013-09-06 23:31:18 UTC) #29
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=24255
7 years, 3 months ago (2013-09-06 23:49:55 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22676002/213001
7 years, 3 months ago (2013-09-07 00:04:30 UTC) #31
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-07 00:45:04 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22676002/231001
7 years, 3 months ago (2013-09-07 00:45:26 UTC) #33
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 3 months ago (2013-09-07 06:39:35 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22676002/259001
7 years, 3 months ago (2013-09-07 14:29:37 UTC) #35
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=76560
7 years, 3 months ago (2013-09-07 15:18:39 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22676002/259001
7 years, 3 months ago (2013-09-07 16:28:31 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22676002/270001
7 years, 3 months ago (2013-09-07 17:28:48 UTC) #38
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-07 17:41:52 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/22676002/270001
7 years, 3 months ago (2013-09-07 18:48:51 UTC) #40
commit-bot: I haz the power
7 years, 3 months ago (2013-09-08 03:37:34 UTC) #41
Message was sent while issue was closed.
Change committed as 221944

Powered by Google App Engine
This is Rietveld 408576698