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

Issue 2384213002: Send a TrackedPreference incident when registry pref validation fails. (Closed)

Created:
4 years, 2 months ago by proberge
Modified:
4 years, 2 months ago
Reviewers:
gab, Cait (Slow), Jialiu Lin
CC:
grt+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Send a TrackedPreference incident when registry pref validation fails. Note that the new incident types (BYPASS_CLEARED and BYPASS_CHANGED) are only used when external (registry) validation fails and existing (secure_preferences-based) validation succeeds. BUG=624858 Committed: https://crrev.com/1ba5bcd1a74380bb398eeab3787ede5620b5130c Committed: https://crrev.com/c34dbf9b2c3434449a30384ce215a40c45fdae05 Cr-Original-Commit-Position: refs/heads/master@{#422545} Cr-Commit-Position: refs/heads/master@{#423285}

Patch Set 1 #

Patch Set 2 : Handle UNSUPPORTED enum value in switch #

Patch Set 3 : Handle UNSUPPORTED in another switch #

Total comments: 6

Patch Set 4 : Improve split preference handling and address comments on #3 #

Total comments: 4

Patch Set 5 : Address comments on patch set 4 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -72 lines) Patch
M chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc View 1 2 3 4 chunks +31 lines, -10 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc View 1 2 3 4 9 chunks +90 lines, -32 lines 3 comments Download
M chrome/common/safe_browsing/csd.proto View 1 chunk +2 lines, -0 lines 0 comments Download
M components/user_prefs/tracked/mock_validation_delegate.h View 1 2 3 3 chunks +21 lines, -8 lines 0 comments Download
M components/user_prefs/tracked/mock_validation_delegate.cc View 1 2 3 2 chunks +21 lines, -6 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_filter_unittest.cc View 1 chunk +14 lines, -2 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_store_transaction.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/user_prefs/tracked/tracked_atomic_preference.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M components/user_prefs/tracked/tracked_preference_helper.cc View 1 2 3 4 3 chunks +9 lines, -4 lines 0 comments Download
M components/user_prefs/tracked/tracked_preference_validation_delegate.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M components/user_prefs/tracked/tracked_split_preference.cc View 1 2 3 1 chunk +6 lines, -7 lines 0 comments Download

Messages

Total messages: 38 (16 generated)
Jialiu Lin
lgtm
4 years, 2 months ago (2016-10-03 18:13:32 UTC) #3
gab
lgtm
4 years, 2 months ago (2016-10-03 18:31:29 UTC) #4
Cait (Slow)
lgtm
4 years, 2 months ago (2016-10-03 19:26:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2384213002/1
4 years, 2 months ago (2016-10-03 19:34:20 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/246023) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-03 19:43:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2384213002/20001
4 years, 2 months ago (2016-10-03 20:10:35 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/308863)
4 years, 2 months ago (2016-10-03 20:21:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2384213002/40001
4 years, 2 months ago (2016-10-03 20:43:00 UTC) #17
gab
https://codereview.chromium.org/2384213002/diff/40001/components/user_prefs/tracked/tracked_preference_helper.cc File components/user_prefs/tracked/tracked_preference_helper.cc (right): https://codereview.chromium.org/2384213002/diff/40001/components/user_prefs/tracked/tracked_preference_helper.cc#newcode88 components/user_prefs/tracked/tracked_preference_helper.cc:88: return; This should be NOTREACHED() as well https://codereview.chromium.org/2384213002/diff/40001/components/user_prefs/tracked/tracked_preference_helper.cc#newcode89 components/user_prefs/tracked/tracked_preference_helper.cc:89: ...
4 years, 2 months ago (2016-10-03 21:03:58 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-03 21:43:52 UTC) #20
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/1ba5bcd1a74380bb398eeab3787ede5620b5130c Cr-Commit-Position: refs/heads/master@{#422545}
4 years, 2 months ago (2016-10-03 21:47:00 UTC) #22
Guido Urdaneta
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2390213002/ by guidou@chromium.org. ...
4 years, 2 months ago (2016-10-04 08:48:42 UTC) #23
proberge
https://codereview.chromium.org/2384213002/diff/40001/components/user_prefs/tracked/tracked_preference_helper.cc File components/user_prefs/tracked/tracked_preference_helper.cc (right): https://codereview.chromium.org/2384213002/diff/40001/components/user_prefs/tracked/tracked_preference_helper.cc#newcode88 components/user_prefs/tracked/tracked_preference_helper.cc:88: return; On 2016/10/03 21:03:58, gab wrote: > This should ...
4 years, 2 months ago (2016-10-05 15:36:41 UTC) #24
proberge
Re-opening issue to rollforwards. @gab PTAL I added another parameter for the Split pref delegate ...
4 years, 2 months ago (2016-10-05 15:37:31 UTC) #26
gab
https://codereview.chromium.org/2384213002/diff/40001/components/user_prefs/tracked/tracked_preference_helper.cc File components/user_prefs/tracked/tracked_preference_helper.cc (right): https://codereview.chromium.org/2384213002/diff/40001/components/user_prefs/tracked/tracked_preference_helper.cc#newcode89 components/user_prefs/tracked/tracked_preference_helper.cc:89: default: On 2016/10/05 15:36:40, proberge wrote: > On 2016/10/03 ...
4 years, 2 months ago (2016-10-05 17:23:22 UTC) #27
proberge
https://codereview.chromium.org/2384213002/diff/40001/components/user_prefs/tracked/tracked_preference_helper.cc File components/user_prefs/tracked/tracked_preference_helper.cc (right): https://codereview.chromium.org/2384213002/diff/40001/components/user_prefs/tracked/tracked_preference_helper.cc#newcode89 components/user_prefs/tracked/tracked_preference_helper.cc:89: default: On 2016/10/05 17:23:21, gab wrote: > On 2016/10/05 ...
4 years, 2 months ago (2016-10-05 17:53:27 UTC) #28
gab
lgtm % question https://codereview.chromium.org/2384213002/diff/60001/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc File chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc (right): https://codereview.chromium.org/2384213002/diff/60001/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc#newcode308 chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc:308: ExpectKeysEquate(external_validation_invalid_keys_, On 2016/10/05 17:53:27, proberge wrote: ...
4 years, 2 months ago (2016-10-05 19:22:26 UTC) #29
proberge
https://codereview.chromium.org/2384213002/diff/60001/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc File chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc (right): https://codereview.chromium.org/2384213002/diff/60001/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc#newcode308 chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc:308: ExpectKeysEquate(external_validation_invalid_keys_, On 2016/10/05 19:22:26, gab wrote: > On 2016/10/05 ...
4 years, 2 months ago (2016-10-05 19:54:05 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2384213002/80001
4 years, 2 months ago (2016-10-05 19:57:33 UTC) #33
gab
https://codereview.chromium.org/2384213002/diff/80001/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc File chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc (right): https://codereview.chromium.org/2384213002/diff/80001/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc#newcode312 chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc:312: EXPECT_EQ(0, tp_incident.split_key_size()); On 2016/10/05 19:54:05, proberge wrote: > On ...
4 years, 2 months ago (2016-10-05 20:08:16 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-05 20:52:00 UTC) #36
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 20:53:34 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c34dbf9b2c3434449a30384ce215a40c45fdae05
Cr-Commit-Position: refs/heads/master@{#423285}

Powered by Google App Engine
This is Rietveld 408576698