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

Issue 646733002: Added incident report for variations seed signature mismatch. (Closed)

Created:
6 years, 2 months ago by Georges Khalil
Modified:
6 years, 2 months ago
CC:
chromium-reviews, Ilya Sherman, asvitkine+watch_chromium.org, robertshield
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Added incident report for variations seed signature mismatch. - Keep record of a bad signature in VariationsSeedStore::LoadSeed. - Register VerifyVariationsSeedSignature in SafeBrowsingService::RegisterAllDelayedAnalysis to send an incident report, if a bad signature is encountered. BUG=423467 Committed: https://crrev.com/37907039f034c6e39c2590fcfb49b7ce05a8b569 Cr-Commit-Position: refs/heads/master@{#299964}

Patch Set 1 #

Patch Set 2 : Minor styling fixes. #

Patch Set 3 : Output of git cl format. #

Total comments: 2

Patch Set 4 : Minor styling fixes. #

Total comments: 36

Patch Set 5 : Reponse to comments. #

Patch Set 6 : #

Total comments: 30

Patch Set 7 : Reponded to comments. #

Patch Set 8 : Minor fixes. #

Total comments: 13

Patch Set 9 : Responded to comments. #

Total comments: 12

Patch Set 10 : Responded to comments. #

Total comments: 15

Patch Set 11 : Responded to comments. #

Total comments: 2

Patch Set 12 : Fixed nit. #

Total comments: 4

Patch Set 13 : Fixed last nits. #

Patch Set 14 : Disabled testing of signature verification on mobile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -11 lines) Patch
M chrome/browser/metrics/variations/variations_seed_store.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_seed_store.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_seed_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +54 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc View 1 2 3 4 5 chunks +13 lines, -3 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.h View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_incident_handlers.h View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -0 lines 0 comments Download
A + chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_incident_handlers.cc View 1 2 3 4 5 6 2 chunks +7 lines, -8 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_incident_handlers_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +67 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 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 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/safe_browsing/csd.proto View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (9 generated)
grt (UTC plus 2)
this is a great start. comments below. https://codereview.chromium.org/646733002/diff/200001/chrome/browser/safe_browsing/incident_reporting/finch_config_signature_analyzer.h File chrome/browser/safe_browsing/incident_reporting/finch_config_signature_analyzer.h (right): https://codereview.chromium.org/646733002/diff/200001/chrome/browser/safe_browsing/incident_reporting/finch_config_signature_analyzer.h#newcode16 chrome/browser/safe_browsing/incident_reporting/finch_config_signature_analyzer.h:16: // will ...
6 years, 2 months ago (2014-10-10 17:45:43 UTC) #4
Georges Khalil
Changes done, as requested. https://codereview.chromium.org/646733002/diff/200001/chrome/browser/safe_browsing/incident_reporting/finch_config_signature_analyzer.h File chrome/browser/safe_browsing/incident_reporting/finch_config_signature_analyzer.h (right): https://codereview.chromium.org/646733002/diff/200001/chrome/browser/safe_browsing/incident_reporting/finch_config_signature_analyzer.h#newcode16 chrome/browser/safe_browsing/incident_reporting/finch_config_signature_analyzer.h:16: // will verify if the ...
6 years, 2 months ago (2014-10-10 20:19:32 UTC) #5
grt (UTC plus 2)
lookin' good https://codereview.chromium.org/646733002/diff/420001/chrome/browser/metrics/variations/variations_seed_store.h File chrome/browser/metrics/variations/variations_seed_store.h (right): https://codereview.chromium.org/646733002/diff/420001/chrome/browser/metrics/variations/variations_seed_store.h#newcode60 chrome/browser/metrics/variations/variations_seed_store.h:60: // Returns the bad signature that was ...
6 years, 2 months ago (2014-10-14 01:28:30 UTC) #6
Georges Khalil
Responded to latest comments. https://codereview.chromium.org/646733002/diff/910001/chrome/browser/metrics/variations/variations_seed_store.cc File chrome/browser/metrics/variations/variations_seed_store.cc (right): https://codereview.chromium.org/646733002/diff/910001/chrome/browser/metrics/variations/variations_seed_store.cc#newcode13 chrome/browser/metrics/variations/variations_seed_store.cc:13: #include "chrome/browser/browser_process.h" On 2014/10/14 01:28:30, ...
6 years, 2 months ago (2014-10-14 13:51:10 UTC) #7
grt (UTC plus 2)
code lgtm. please update the CL description to use the same terminology as the code. ...
6 years, 2 months ago (2014-10-14 16:54:24 UTC) #9
Alexei Svitkine (slow)
Please make the first line of the CL description the same as the CL title ...
6 years, 2 months ago (2014-10-14 17:30:02 UTC) #10
Georges Khalil
Responded to comments by Alexei. https://codereview.chromium.org/646733002/diff/960001/chrome/browser/metrics/variations/variations_seed_store.cc File chrome/browser/metrics/variations/variations_seed_store.cc (right): https://codereview.chromium.org/646733002/diff/960001/chrome/browser/metrics/variations/variations_seed_store.cc#newcode282 chrome/browser/metrics/variations/variations_seed_store.cc:282: if (!is_invalid_signature_) { On ...
6 years, 2 months ago (2014-10-14 18:00:32 UTC) #11
Alexei Svitkine (slow)
I think you also missed my top-level comments from my last reply (about the CL ...
6 years, 2 months ago (2014-10-14 18:15:07 UTC) #12
Georges Khalil
Responded to comments. https://codereview.chromium.org/646733002/diff/980001/chrome/browser/metrics/variations/variations_seed_store.h File chrome/browser/metrics/variations/variations_seed_store.h (right): https://codereview.chromium.org/646733002/diff/980001/chrome/browser/metrics/variations/variations_seed_store.h#newcode59 chrome/browser/metrics/variations/variations_seed_store.h:59: // |invalid_signature| to the loaded signature. ...
6 years, 2 months ago (2014-10-15 14:41:47 UTC) #13
Alexei Svitkine (slow)
LGTM % remaining nits, thanks! https://codereview.chromium.org/646733002/diff/1000001/chrome/browser/metrics/variations/variations_seed_store_unittest.cc File chrome/browser/metrics/variations/variations_seed_store_unittest.cc (right): https://codereview.chromium.org/646733002/diff/1000001/chrome/browser/metrics/variations/variations_seed_store_unittest.cc#newcode138 chrome/browser/metrics/variations/variations_seed_store_unittest.cc:138: variations::VariationsSeed loaded_seed; Nit: Move ...
6 years, 2 months ago (2014-10-15 14:53:07 UTC) #14
Alexei Svitkine (slow)
https://codereview.chromium.org/646733002/diff/1000001/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc File chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc (right): https://codereview.chromium.org/646733002/diff/1000001/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc#newcode26 chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc:26: ->GetInvalidVariationsSeedSignature(); Actually, one other thing - g_browser_process->variations_service() may be ...
6 years, 2 months ago (2014-10-15 14:55:57 UTC) #15
grt (UTC plus 2)
comment question https://codereview.chromium.org/646733002/diff/1000001/chrome/browser/metrics/variations/variations_seed_store.h File chrome/browser/metrics/variations/variations_seed_store.h (right): https://codereview.chromium.org/646733002/diff/1000001/chrome/browser/metrics/variations/variations_seed_store.h#newcode59 chrome/browser/metrics/variations/variations_seed_store.h:59: // signature was not invalid. shouldn't this ...
6 years, 2 months ago (2014-10-15 15:08:07 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/646733002/diff/1000001/chrome/browser/metrics/variations/variations_seed_store.h File chrome/browser/metrics/variations/variations_seed_store.h (right): https://codereview.chromium.org/646733002/diff/1000001/chrome/browser/metrics/variations/variations_seed_store.h#newcode59 chrome/browser/metrics/variations/variations_seed_store.h:59: // signature was not invalid. On 2014/10/15 15:08:07, grt ...
6 years, 2 months ago (2014-10-15 15:16:31 UTC) #17
Georges Khalil
Responded to comments. https://codereview.chromium.org/646733002/diff/1000001/chrome/browser/metrics/variations/variations_seed_store.h File chrome/browser/metrics/variations/variations_seed_store.h (right): https://codereview.chromium.org/646733002/diff/1000001/chrome/browser/metrics/variations/variations_seed_store.h#newcode59 chrome/browser/metrics/variations/variations_seed_store.h:59: // signature was not invalid. On ...
6 years, 2 months ago (2014-10-15 16:53:20 UTC) #18
grt (UTC plus 2)
lgtm with one final nit. thanks. https://codereview.chromium.org/646733002/diff/1020001/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc File chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc (right): https://codereview.chromium.org/646733002/diff/1020001/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc#newcode25 chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc:25: if (g_browser_process->variations_service() == ...
6 years, 2 months ago (2014-10-15 17:29:42 UTC) #19
grt (UTC plus 2)
+mattm for safe_browsing OWNERS review
6 years, 2 months ago (2014-10-16 01:08:07 UTC) #21
mattm
lgtm with nits https://codereview.chromium.org/646733002/diff/1040001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/646733002/diff/1040001/chrome/chrome_browser.gypi#newcode2606 chrome/chrome_browser.gypi:2606: 'browser/safe_browsing/incident_reporting/variations_seed_signature_incident_handlers.h', sorting https://codereview.chromium.org/646733002/diff/1040001/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): ...
6 years, 2 months ago (2014-10-16 02:38:12 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646733002/1060001
6 years, 2 months ago (2014-10-16 12:44:17 UTC) #24
Georges Khalil
Fixed last nits. https://codereview.chromium.org/646733002/diff/1020001/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc File chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc (right): https://codereview.chromium.org/646733002/diff/1020001/chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc#newcode25 chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_analyzer.cc:25: if (g_browser_process->variations_service() == nullptr) { On ...
6 years, 2 months ago (2014-10-16 13:21:27 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/18916)
6 years, 2 months ago (2014-10-16 14:31:34 UTC) #27
grt (UTC plus 2)
lgtm
6 years, 2 months ago (2014-10-16 19:58:12 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646733002/1100001
6 years, 2 months ago (2014-10-16 19:59:23 UTC) #31
commit-bot: I haz the power
Committed patchset #14 (id:1100001)
6 years, 2 months ago (2014-10-16 20:15:28 UTC) #32
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 20:16:41 UTC) #33
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/37907039f034c6e39c2590fcfb49b7ce05a8b569
Cr-Commit-Position: refs/heads/master@{#299964}

Powered by Google App Engine
This is Rietveld 408576698