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

Issue 441453002: Support for process-wide incidents in the safe browsing incident reporting service. (Closed)

Created:
6 years, 4 months ago by grt (UTC plus 2)
Modified:
6 years, 4 months ago
Reviewers:
robertshield, mattm
CC:
chromium-reviews, Patrick Monette
Project:
chromium
Visibility:
Public.

Description

Support for process-wide incidents in the safe browsing incident reporting service. BUG=399428 R=robertshield@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288028

Patch Set 1 #

Total comments: 10

Patch Set 2 : robert comments, proper return call in delayed callback runner #

Total comments: 1

Patch Set 3 : fixed thread return #

Patch Set 4 : impl #

Total comments: 16

Patch Set 5 : responding to comments #

Patch Set 6 : another test #

Patch Set 7 : removed unused variable in unit test #

Patch Set 8 : skip delayed analysis tasks on shutdown #

Patch Set 9 : unit tests for delayed analysis callbacks in the service #

Patch Set 10 : doc fixes #

Total comments: 6

Patch Set 11 : sync to r287809 #

Patch Set 12 : gypi fix #

Patch Set 13 : new test plus other review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+761 lines, -58 lines) Patch
A chrome/browser/safe_browsing/delayed_analysis_callback.h View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/delayed_callback_runner.h View 1 2 3 4 5 6 7 8 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/delayed_callback_runner.cc View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/delayed_callback_runner_unittest.cc View 1 2 3 1 chunk +160 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting_service.h View 1 2 3 4 5 6 7 8 9 7 chunks +44 lines, -12 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting_service.cc View 1 2 3 4 5 6 7 8 14 chunks +186 lines, -44 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +213 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
robertshield
Awesome, some drive-by musings follow https://codereview.chromium.org/441453002/diff/40001/chrome/browser/safe_browsing/delayed_callback_runner.h File chrome/browser/safe_browsing/delayed_callback_runner.h (right): https://codereview.chromium.org/441453002/diff/40001/chrome/browser/safe_browsing/delayed_callback_runner.h#newcode22 chrome/browser/safe_browsing/delayed_callback_runner.h:22: // runner is doing ...
6 years, 4 months ago (2014-08-04 01:35:12 UTC) #1
grt (UTC plus 2)
Many thanks for the early review. This CL is a work in progress and isn't ...
6 years, 4 months ago (2014-08-04 14:15:34 UTC) #2
grt (UTC plus 2)
https://codereview.chromium.org/441453002/diff/50001/chrome/browser/safe_browsing/delayed_callback_runner.cc File chrome/browser/safe_browsing/delayed_callback_runner.cc (right): https://codereview.chromium.org/441453002/diff/50001/chrome/browser/safe_browsing/delayed_callback_runner.cc#newcode41 chrome/browser/safe_browsing/delayed_callback_runner.cc:41: callbacks_.push_back(base::Bind(&RunCallbackOnOriginThread, oops, this is totally wrong.
6 years, 4 months ago (2014-08-04 14:16:29 UTC) #3
grt (UTC plus 2)
totally wrong thread return is now totally right (i think). will be proved in unit ...
6 years, 4 months ago (2014-08-04 14:32:49 UTC) #4
grt (UTC plus 2)
Sending out for early review. I will be adding tests for the new feature to ...
6 years, 4 months ago (2014-08-05 15:33:55 UTC) #5
robertshield
Looks awesome to me, some comments https://codereview.chromium.org/441453002/diff/110001/chrome/browser/safe_browsing/incident_reporting_service.cc File chrome/browser/safe_browsing/incident_reporting_service.cc (right): https://codereview.chromium.org/441453002/diff/110001/chrome/browser/safe_browsing/incident_reporting_service.cc#newcode76 chrome/browser/safe_browsing/incident_reporting_service.cc:76: const int64 kDefaultCallbackMs ...
6 years, 4 months ago (2014-08-05 21:26:28 UTC) #6
mattm
https://codereview.chromium.org/441453002/diff/110001/chrome/browser/safe_browsing/incident_reporting_service.cc File chrome/browser/safe_browsing/incident_reporting_service.cc (right): https://codereview.chromium.org/441453002/diff/110001/chrome/browser/safe_browsing/incident_reporting_service.cc#newcode432 chrome/browser/safe_browsing/incident_reporting_service.cc:432: if (prefs->GetBoolean(prefs::kSafeBrowsingExtendedReportingEnabled)) { Need to check prefs::kSafeBrowsingEnabled too (extended ...
6 years, 4 months ago (2014-08-06 02:10:17 UTC) #7
grt (UTC plus 2)
Responding to comments. More unit tests still to come. https://codereview.chromium.org/441453002/diff/110001/chrome/browser/safe_browsing/incident_reporting_service.cc File chrome/browser/safe_browsing/incident_reporting_service.cc (right): https://codereview.chromium.org/441453002/diff/110001/chrome/browser/safe_browsing/incident_reporting_service.cc#newcode76 chrome/browser/safe_browsing/incident_reporting_service.cc:76: ...
6 years, 4 months ago (2014-08-06 02:37:31 UTC) #8
grt (UTC plus 2)
I've rounded out the unit tests. Please perform final reviews. Thanks.
6 years, 4 months ago (2014-08-06 17:51:15 UTC) #9
robertshield
lgtm https://codereview.chromium.org/441453002/diff/250001/chrome/browser/safe_browsing/incident_reporting_service_unittest.cc File chrome/browser/safe_browsing/incident_reporting_service_unittest.cc (right): https://codereview.chromium.org/441453002/diff/250001/chrome/browser/safe_browsing/incident_reporting_service_unittest.cc#newcode775 chrome/browser/safe_browsing/incident_reporting_service_unittest.cc:775: // participating in safe browsing is added. perhaps ...
6 years, 4 months ago (2014-08-06 18:27:08 UTC) #10
mattm
https://codereview.chromium.org/441453002/diff/250001/chrome/browser/safe_browsing/incident_reporting_service_unittest.cc File chrome/browser/safe_browsing/incident_reporting_service_unittest.cc (right): https://codereview.chromium.org/441453002/diff/250001/chrome/browser/safe_browsing/incident_reporting_service_unittest.cc#newcode799 chrome/browser/safe_browsing/incident_reporting_service_unittest.cc:799: TEST_F(IncidentReportingServiceTest, AnalysisWhenReigsteredWithProfile) { Reigstered https://codereview.chromium.org/441453002/diff/250001/chrome/browser/safe_browsing/incident_reporting_service_unittest.cc#newcode862 chrome/browser/safe_browsing/incident_reporting_service_unittest.cc:862: The tests which ...
6 years, 4 months ago (2014-08-06 22:36:13 UTC) #11
grt (UTC plus 2)
Thanks, PTAL. Feel at liberty to hit the CQ box if it looks good to ...
6 years, 4 months ago (2014-08-07 01:46:14 UTC) #12
mattm
lgtm
6 years, 4 months ago (2014-08-07 01:50:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/441453002/310001
6 years, 4 months ago (2014-08-07 01:53:48 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 11:05:37 UTC) #15
Message was sent while issue was closed.
Change committed as 288028

Powered by Google App Engine
This is Rietveld 408576698