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

Issue 1024943002: Add domain request detection to incident reporting service. (Closed)

Created:
5 years, 9 months ago by romanl
Modified:
5 years, 8 months ago
CC:
chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add domain request detection to incident reporting service. BUG=none R=grt@chromium.org Committed: https://crrev.com/045b8f6f2a83aa436d4c2d9cf024510599da3eec Cr-Commit-Position: refs/heads/master@{#324144}

Patch Set 1 #

Patch Set 2 : Add DomainRequest incident type to histograms.xml #

Total comments: 6

Patch Set 3 : Merge domain and script incidents, ignore top-level requests, improve unit tests #

Total comments: 12

Patch Set 4 : Minor corrections #

Total comments: 1

Patch Set 5 : Remove empty line for consistency #

Total comments: 4

Patch Set 6 : Set default type to unknown #

Unified diffs Side-by-side diffs Delta from patch set Stats (+635 lines, -523 lines) Patch
M chrome/browser/safe_browsing/incident_reporting/incident.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/safe_browsing/incident_reporting/resource_request_detector.h View 1 2 3 chunks +15 lines, -11 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc View 1 2 3 1 chunk +373 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/resource_request_detector_unittest.cc View 1 2 3 1 chunk +169 lines, -0 lines 0 comments Download
A + chrome/browser/safe_browsing/incident_reporting/resource_request_incident.h View 1 2 2 chunks +9 lines, -9 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/resource_request_incident.cc View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/script_request_detector.h View 1 2 1 chunk +0 lines, -57 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/script_request_detector.cc View 1 2 1 chunk +0 lines, -216 lines 0 comments Download
D chrome/browser/safe_browsing/incident_reporting/script_request_detector_unittest.cc View 1 2 3 1 chunk +0 lines, -138 lines 0 comments Download
D chrome/browser/safe_browsing/incident_reporting/script_request_incident.h View 1 2 1 chunk +0 lines, -34 lines 0 comments Download
D chrome/browser/safe_browsing/incident_reporting/script_request_incident.cc View 1 2 1 chunk +0 lines, -40 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/safe_browsing/csd.proto View 1 2 3 4 5 2 chunks +10 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (5 generated)
romanl
Hi Greg, Could you please review my domain request detection changes? (mostly copy-pasted from script ...
5 years, 9 months ago (2015-03-20 17:15:58 UTC) #1
grt (UTC plus 2)
A good start. I think we may need to tune when the new incident is ...
5 years, 9 months ago (2015-03-20 20:50:04 UTC) #2
grt (UTC plus 2)
https://codereview.chromium.org/1024943002/diff/20001/chrome/common/safe_browsing/csd.proto File chrome/common/safe_browsing/csd.proto (right): https://codereview.chromium.org/1024943002/diff/20001/chrome/common/safe_browsing/csd.proto#newcode374 chrome/common/safe_browsing/csd.proto:374: message DomainRequestIncident { On 2015/03/20 20:50:04, grt wrote: > ...
5 years, 9 months ago (2015-03-21 01:30:08 UTC) #3
grt (UTC plus 2)
On 2015/03/21 01:30:08, grt wrote: > https://codereview.chromium.org/1024943002/diff/20001/chrome/common/safe_browsing/csd.proto > File chrome/common/safe_browsing/csd.proto (right): > > https://codereview.chromium.org/1024943002/diff/20001/chrome/common/safe_browsing/csd.proto#newcode374 > ...
5 years, 9 months ago (2015-03-21 01:44:36 UTC) #4
romanl
Hi Greg, As you suggested, I have merged domain and script incidents into a single ...
5 years, 9 months ago (2015-03-23 21:31:29 UTC) #5
romanl
Hi Greg, I made the change that we discussed today to ignore top-level requests (RESOURCE_TYPE_MAIN_FRAME) ...
5 years, 9 months ago (2015-03-26 22:01:47 UTC) #8
grt (UTC plus 2)
this looks great. minor tweaks below. https://codereview.chromium.org/1024943002/diff/80001/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc File chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc (right): https://codereview.chromium.org/1024943002/diff/80001/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc#newcode265 chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc:265: // Only detect ...
5 years, 9 months ago (2015-03-27 14:17:44 UTC) #9
romanl
Hi Greg, Fixed! Thanks, Roman. https://codereview.chromium.org/1024943002/diff/80001/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc File chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc (right): https://codereview.chromium.org/1024943002/diff/80001/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc#newcode265 chrome/browser/safe_browsing/incident_reporting/resource_request_detector.cc:265: // Only detect non ...
5 years, 8 months ago (2015-03-30 14:46:50 UTC) #10
grt (UTC plus 2)
LGTM, thanks. https://codereview.chromium.org/1024943002/diff/100001/chrome/common/safe_browsing/csd.proto File chrome/common/safe_browsing/csd.proto (right): https://codereview.chromium.org/1024943002/diff/100001/chrome/common/safe_browsing/csd.proto#newcode385 chrome/common/safe_browsing/csd.proto:385: nit: remove blank line for consistency with ...
5 years, 8 months ago (2015-03-30 15:50:44 UTC) #11
romanl
Removed the blank line. Thanks!
5 years, 8 months ago (2015-03-30 17:14:42 UTC) #12
grt (UTC plus 2)
still lgtm with a final change. please update and hit the CQ box. https://codereview.chromium.org/1024943002/diff/120001/chrome/common/safe_browsing/csd.proto File ...
5 years, 8 months ago (2015-04-01 20:17:07 UTC) #13
grt (UTC plus 2)
On 2015/04/01 20:17:07, grt wrote: > still lgtm with a final change. please update and ...
5 years, 8 months ago (2015-04-01 20:17:35 UTC) #14
grt (UTC plus 2)
adding OWNERS for their approval: asvitkine: tools/metrics/histograms/histograms.xml mattm: chrome/browser/safe_browsing/safe_browsing_service.{cc,h} and chrome/common/safe_browsing/csd.proto thanks.
5 years, 8 months ago (2015-04-01 20:20:24 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/1024943002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1024943002/diff/120001/tools/metrics/histograms/histograms.xml#newcode51991 tools/metrics/histograms/histograms.xml:51991: + <int value="6" label="ResourceRequest"/> Don't re-use the same enum ...
5 years, 8 months ago (2015-04-01 21:02:59 UTC) #17
grt (UTC plus 2)
https://codereview.chromium.org/1024943002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1024943002/diff/120001/tools/metrics/histograms/histograms.xml#newcode51991 tools/metrics/histograms/histograms.xml:51991: + <int value="6" label="ResourceRequest"/> On 2015/04/01 21:02:59, Alexei Svitkine ...
5 years, 8 months ago (2015-04-01 22:04:02 UTC) #18
mattm
lgtm
5 years, 8 months ago (2015-04-01 23:11:10 UTC) #19
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1024943002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1024943002/diff/120001/tools/metrics/histograms/histograms.xml#newcode51991 tools/metrics/histograms/histograms.xml:51991: + <int value="6" label="ResourceRequest"/> On 2015/04/01 22:04:02, grt ...
5 years, 8 months ago (2015-04-02 15:30:31 UTC) #20
Alexei Svitkine (slow)
However, this CL appears large enough that it should have an associated crbug with it. ...
5 years, 8 months ago (2015-04-02 15:31:19 UTC) #21
grt (UTC plus 2)
On 2015/04/02 15:30:31, Alexei Svitkine wrote: > lgtm > > https://codereview.chromium.org/1024943002/diff/120001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): ...
5 years, 8 months ago (2015-04-02 15:31:22 UTC) #22
grt (UTC plus 2)
On 2015/04/01 20:17:07, grt wrote: > still lgtm with a final change. please update and ...
5 years, 8 months ago (2015-04-02 15:50:36 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024943002/140001
5 years, 8 months ago (2015-04-07 21:31:41 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 8 months ago (2015-04-07 22:55:50 UTC) #27
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 22:57:00 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/045b8f6f2a83aa436d4c2d9cf024510599da3eec
Cr-Commit-Position: refs/heads/master@{#324144}

Powered by Google App Engine
This is Rietveld 408576698