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

Issue 859903002: Compare non-whitelisted off-domain inclusions against the browsing history. (Closed)

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

Description

Compare non-whitelisted off-domain inclusions against browsing history. BUG=412468 Committed: https://crrev.com/5918e01e4163038e2afd5d69761f18072146ae32 Cr-Commit-Position: refs/heads/master@{#313820}

Patch Set 1 #

Patch Set 2 : fix compile #

Patch Set 3 : merge and fix compile issues caused by trunk changes to ServiceAccessType #

Total comments: 12

Patch Set 4 : histograms cleanup #

Patch Set 5 : merge r312228 #

Total comments: 21

Patch Set 6 : review:grt/asvitkine #

Total comments: 2

Patch Set 7 : Use RenderProcessHost instead of RenderFrameHost to obtain Profile* with one less level of indirect… #

Patch Set 8 : fix compile? #

Total comments: 4

Patch Set 9 : GMOCK, nit, and compile fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+454 lines, -64 lines) Patch
M chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.h View 1 2 3 4 5 6 7 5 chunks +32 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc View 1 2 3 4 5 6 7 8 7 chunks +128 lines, -18 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +248 lines, -39 lines 1 comment Download
M tools/metrics/histograms/histograms.xml View 5 chunks +46 lines, -3 lines 0 comments Download

Messages

Total messages: 33 (8 generated)
gab
Hey Greg, finally got it working with the HistoryService (those unittests were a pain...!) I'd ...
5 years, 11 months ago (2015-01-19 21:33:57 UTC) #2
gab
Alright, cleaned up and ready for full review now. @Alexei for histograms in parallel. Thanks! ...
5 years, 11 months ago (2015-01-20 17:31:57 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/859903002/diff/60001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc (right): https://codereview.chromium.org/859903002/diff/60001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc#newcode67 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc:67: HistoryService* history_service = new HistoryService( Should this be a ...
5 years, 11 months ago (2015-01-20 17:48:13 UTC) #6
gab
Thanks for the quick feedback, replies below. https://codereview.chromium.org/859903002/diff/60001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc (right): https://codereview.chromium.org/859903002/diff/60001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc#newcode67 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc:67: HistoryService* history_service ...
5 years, 11 months ago (2015-01-20 18:10:48 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/859903002/diff/60001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc (right): https://codereview.chromium.org/859903002/diff/60001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc#newcode67 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc:67: HistoryService* history_service = new HistoryService( On 2015/01/20 18:10:48, gab ...
5 years, 11 months ago (2015-01-20 18:17:48 UTC) #8
gab
Okay, how about this? https://codereview.chromium.org/859903002/diff/60001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc (right): https://codereview.chromium.org/859903002/diff/60001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc#newcode67 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc:67: HistoryService* history_service = new HistoryService( ...
5 years, 11 months ago (2015-01-20 18:51:57 UTC) #10
Alexei Svitkine (slow)
histograms lgtm, but curious to see the discussion about HistoryService ownership https://codereview.chromium.org/859903002/diff/120001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc (right): ...
5 years, 11 months ago (2015-01-20 22:24:57 UTC) #11
grt (UTC plus 2)
Looks good. Will review the test after callback vs. virtual method is resolved. Cheers. https://codereview.chromium.org/859903002/diff/120001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc ...
5 years, 11 months ago (2015-01-21 01:58:24 UTC) #12
grt (UTC plus 2)
https://codereview.chromium.org/859903002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/859903002/diff/120001/tools/metrics/histograms/histograms.xml#newcode31452 tools/metrics/histograms/histograms.xml:31452: + Deprecated 01/2015. can a comment here somehow direct ...
5 years, 11 months ago (2015-01-21 02:04:42 UTC) #13
gab
Thanks, done, PTAL. Cheers! Gab https://codereview.chromium.org/859903002/diff/120001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc (right): https://codereview.chromium.org/859903002/diff/120001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc#newcode35 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc:35: // |render_process_id| and |render_frame_id| ...
5 years, 11 months ago (2015-01-23 21:35:34 UTC) #14
robertshield
https://codereview.chromium.org/859903002/diff/140001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc (right): https://codereview.chromium.org/859903002/diff/140001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc#newcode243 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc:243: // this call can be made synchronously, but this ...
5 years, 11 months ago (2015-01-26 20:14:48 UTC) #16
gab
https://codereview.chromium.org/859903002/diff/140001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc (right): https://codereview.chromium.org/859903002/diff/140001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc#newcode243 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc:243: // this call can be made synchronously, but this ...
5 years, 11 months ago (2015-01-26 20:38:00 UTC) #17
grt (UTC plus 2)
https://codereview.chromium.org/859903002/diff/120001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc (right): https://codereview.chromium.org/859903002/diff/120001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc#newcode269 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc:269: HistoryServiceFactory::GetForProfileWithoutCreating(profile); On 2015/01/23 21:35:33, gab wrote: > On 2015/01/21 ...
5 years, 11 months ago (2015-01-27 15:28:12 UTC) #18
gab
Done. @sky (as a chrome\browser\history owner): we would like your input on a comment below ...
5 years, 10 months ago (2015-01-28 19:33:06 UTC) #21
grt (UTC plus 2)
https://codereview.chromium.org/859903002/diff/120001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc (right): https://codereview.chromium.org/859903002/diff/120001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc#newcode269 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc:269: HistoryServiceFactory::GetForProfileWithoutCreating(profile); On 2015/01/28 19:33:06, gab wrote: > On 2015/01/27 ...
5 years, 10 months ago (2015-01-28 21:10:51 UTC) #22
sky
https://codereview.chromium.org/859903002/diff/120001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc File chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc (right): https://codereview.chromium.org/859903002/diff/120001/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc#newcode269 chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc:269: HistoryServiceFactory::GetForProfileWithoutCreating(profile); On 2015/01/28 21:10:50, grt wrote: > On 2015/01/28 ...
5 years, 10 months ago (2015-01-28 21:35:02 UTC) #23
gab
@sky: more context below, happy to answer additional questions, essentially we're trying to understand when ...
5 years, 10 months ago (2015-01-29 14:53:41 UTC) #24
grt (UTC plus 2)
On 2015/01/29 14:53:41, gab wrote: > @sky: more context below, happy to answer additional questions, ...
5 years, 10 months ago (2015-01-29 15:35:53 UTC) #25
gab
On 2015/01/29 15:35:53, grt wrote: > On 2015/01/29 14:53:41, gab wrote: > > @sky: more ...
5 years, 10 months ago (2015-01-29 17:06:49 UTC) #26
sky
As you are finding EXPLICIT vs IMPLICIT is a bit arbitrary. In many cases you ...
5 years, 10 months ago (2015-01-29 18:21:22 UTC) #27
grt (UTC plus 2)
Thanks for chiming in, Scott. LGTM.
5 years, 10 months ago (2015-01-29 19:01:27 UTC) #28
gab
On 2015/01/29 19:01:27, grt wrote: > Thanks for chiming in, Scott. LGTM. Thanks Scott, going ...
5 years, 10 months ago (2015-01-29 22:46:09 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/859903002/220001
5 years, 10 months ago (2015-01-29 22:47:30 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:220001)
5 years, 10 months ago (2015-01-29 23:20:00 UTC) #32
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 23:21:26 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/5918e01e4163038e2afd5d69761f18072146ae32
Cr-Commit-Position: refs/heads/master@{#313820}

Powered by Google App Engine
This is Rietveld 408576698