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

Issue 516663002: Introducing the OffDomainInclusionDetector to analyze resource requests for suspicious activity. (Closed)

Created:
6 years, 3 months ago by gab
Modified:
6 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, asvitkine+watch_chromium.org, noé
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Introducing the OffDomainInclusionDetector to analyze resource requests for suspicious activity. Based on top of https://codereview.chromium.org/624073002/ BUG=412468 Committed: https://crrev.com/4f7098a467ed332f3dda0811a34ceaef5c63b2e8 Cr-Commit-Position: refs/heads/master@{#304906}

Patch Set 1 #

Patch Set 2 : Base analysis off of second-level domain only. #

Total comments: 11

Patch Set 3 : review:mattm #

Patch Set 4 : Move OffDomainInclusionDetector into incident_reporting/ (no other changes) #

Patch Set 5 : temp save of local changes while going on leave #

Patch Set 6 : merge up to r302103 #

Patch Set 7 : more tests and cleanup #

Total comments: 10

Patch Set 8 : review:mattm #

Total comments: 4

Patch Set 9 : merge up to r304253 #

Total comments: 2

Patch Set 10 : compile nit #

Patch Set 11 : nits #

Total comments: 6

Patch Set 12 : merge up to r304626 #

Patch Set 13 : probably unecessary but harmless reset #

Unified diffs Side-by-side diffs Delta from patch set Stats (+616 lines, -49 lines) Patch
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h View 1 2 3 4 5 6 7 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc View 1 2 3 4 5 6 7 1 chunk +122 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc View 1 2 3 4 5 6 7 1 chunk +327 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +13 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 +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/resource_type.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +19 lines, -19 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 13 chunks +64 lines, -28 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
gab
Matt PTAL, design doc @ https://docs.google.com/a/google.com/document/d/19IWX0yWNCFtP_b2LcXcv6KqOLKrxDLBEFf2j3COAHMo/edit Thanks, Gab
6 years, 3 months ago (2014-09-09 19:39:56 UTC) #2
mattm
https://codereview.chromium.org/516663002/diff/20001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/516663002/diff/20001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode29 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:29: #include "chrome/browser/safe_browsing/client_side_detection_service.h" unused https://codereview.chromium.org/516663002/diff/20001/chrome/browser/safe_browsing/off_domain_inclusion_detector.cc File chrome/browser/safe_browsing/off_domain_inclusion_detector.cc (right): https://codereview.chromium.org/516663002/diff/20001/chrome/browser/safe_browsing/off_domain_inclusion_detector.cc#newcode14 chrome/browser/safe_browsing/off_domain_inclusion_detector.cc:14: ...
6 years, 3 months ago (2014-09-09 21:20:17 UTC) #3
gab
Hey Matt, finally looping back to this after my leave followed by the UwS interstitial ...
6 years, 1 month ago (2014-11-12 20:49:35 UTC) #5
mattm
https://codereview.chromium.org/516663002/diff/140001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h (right): https://codereview.chromium.org/516663002/diff/140001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h#newcode21 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h:21: enum AnalysisEvent { Use enum class? https://codereview.chromium.org/516663002/diff/140001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h#newcode37 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h:37: OffDomainInclusionDetector( ...
6 years, 1 month ago (2014-11-14 04:16:00 UTC) #6
gab
Thanks, PTAL. Also adding: jwd@ for histograms, avi@ for the content/public/common/resource_type.h explicit API clarification, and ...
6 years, 1 month ago (2014-11-14 19:48:36 UTC) #8
Nico
chrome_resource_dispatcher_host_delegate lgtm https://codereview.chromium.org/516663002/diff/160001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/516663002/diff/160001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode311 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:311: safe_browsing_->OnResourceRequest(request); nit: if someone helpfully deletes this ...
6 years, 1 month ago (2014-11-14 19:52:58 UTC) #9
Avi (use Gerrit)
content/public/common/resource_type.h LGTM with nit https://codereview.chromium.org/516663002/diff/160001/content/public/common/resource_type.h File content/public/common/resource_type.h (right): https://codereview.chromium.org/516663002/diff/160001/content/public/common/resource_type.h#newcode12 content/public/common/resource_type.h:12: // Used in histograms, explicitly ...
6 years, 1 month ago (2014-11-14 19:53:05 UTC) #10
mattm
https://codereview.chromium.org/516663002/diff/180001/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (right): https://codereview.chromium.org/516663002/diff/180001/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode358 chrome/browser/safe_browsing/safe_browsing_service.cc:358: incident_service_->AddDownloadManager(download_manager); bad merge (missing endif)
6 years, 1 month ago (2014-11-14 23:40:10 UTC) #11
gab
Thanks, nits addressed. @Nico: see reply below. @Matt: PTAL. @Jesse: PTAL @ histograms.xml https://codereview.chromium.org/516663002/diff/160001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File ...
6 years, 1 month ago (2014-11-18 17:23:20 UTC) #12
mattm
lgtm
6 years, 1 month ago (2014-11-18 23:36:16 UTC) #13
jwd
lgtm
6 years, 1 month ago (2014-11-19 01:04:02 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/516663002/220001
6 years, 1 month ago (2014-11-19 01:28:25 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/35184)
6 years, 1 month ago (2014-11-19 01:58:48 UTC) #18
grt (UTC plus 2)
drive-by https://codereview.chromium.org/516663002/diff/220001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h (right): https://codereview.chromium.org/516663002/diff/220001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h#newcode44 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h:44: void OnResourceRequest(const net::URLRequest* request); why not const ref? ...
6 years, 1 month ago (2014-11-19 18:29:00 UTC) #19
gab
@grt: see comments below, I'll try to land now and will follow-up with anything remaining. ...
6 years, 1 month ago (2014-11-19 21:29:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/516663002/280001
6 years, 1 month ago (2014-11-19 21:30:04 UTC) #23
commit-bot: I haz the power
Committed patchset #13 (id:280001)
6 years, 1 month ago (2014-11-19 22:31:47 UTC) #24
commit-bot: I haz the power
6 years, 1 month ago (2014-11-19 22:33:25 UTC) #25
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/4f7098a467ed332f3dda0811a34ceaef5c63b2e8
Cr-Commit-Position: refs/heads/master@{#304906}

Powered by Google App Engine
This is Rietveld 408576698