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

Issue 2644133005: Include all server redirects in referrer chain (Closed)

Created:
3 years, 11 months ago by Jialiu Lin
Modified:
3 years, 10 months ago
CC:
chromium-reviews, grt+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

In previous implementation, if the server does the more than one server redirects, we only record the original request url and the final url (after all server-redirects). Per Bineval team's request, this CL adds all the server redirect urls (including intermediate ones) to download pings. This is because these intermediate server redirects might be used as signal to identify certain malware/UwS campaigns. Add two histograms to count # of NavigationEvents and # of ResolvedIPAddress every 2 minutes. These help us estimate the memory usage. Also, fix a bug that causes duplicating IP addresses. BUG=680238 Review-Url: https://codereview.chromium.org/2644133005 Cr-Commit-Position: refs/heads/master@{#447382} Committed: https://chromium.googlesource.com/chromium/src/+/de82ac84d9c24e3910cfc4c20d81d94bfca48943

Patch Set 1 #

Patch Set 2 : nit #

Total comments: 8

Patch Set 3 : address nparker's comments #

Patch Set 4 : proto change and adding two histograms #

Total comments: 20

Patch Set 5 : git cl format #

Patch Set 6 : rebase update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+549 lines, -225 lines) Patch
M chrome/browser/safe_browsing/download_protection_service.h View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 7 chunks +22 lines, -17 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_navigation_observer.h View 1 2 2 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc View 1 2 4 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc View 1 2 3 4 5 23 chunks +315 lines, -128 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc View 1 2 3 4 5 16 chunks +71 lines, -38 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_navigation_observer_unittest.cc View 1 2 3 4 8 chunks +77 lines, -17 lines 0 comments Download
M chrome/common/safe_browsing/csd.proto View 1 2 3 4 3 chunks +22 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (25 generated)
Jialiu Lin
nparker@, could you take a look?
3 years, 11 months ago (2017-01-20 01:39:04 UTC) #10
Nathan Parker
lgtm https://codereview.chromium.org/2644133005/diff/40001/chrome/browser/safe_browsing/safe_browsing_navigation_observer.h File chrome/browser/safe_browsing/safe_browsing_navigation_observer.h (right): https://codereview.chromium.org/2644133005/diff/40001/chrome/browser/safe_browsing/safe_browsing_navigation_observer.h#newcode48 chrome/browser/safe_browsing/safe_browsing_navigation_observer.h:48: // including the final destination Maybe say in ...
3 years, 11 months ago (2017-01-20 23:36:20 UTC) #11
Jialiu Lin
Thanks nparker@! https://codereview.chromium.org/2644133005/diff/40001/chrome/browser/safe_browsing/safe_browsing_navigation_observer.h File chrome/browser/safe_browsing/safe_browsing_navigation_observer.h (right): https://codereview.chromium.org/2644133005/diff/40001/chrome/browser/safe_browsing/safe_browsing_navigation_observer.h#newcode48 chrome/browser/safe_browsing/safe_browsing_navigation_observer.h:48: // including the final destination On 2017/01/20 ...
3 years, 11 months ago (2017-01-21 00:48:27 UTC) #12
Jialiu Lin
Hi nparker@, I made some changes to this CL due to my recent discussion with ...
3 years, 11 months ago (2017-01-27 00:31:02 UTC) #17
Jialiu Lin
+holte@ for histograms.xml Thanks!
3 years, 10 months ago (2017-01-27 20:07:17 UTC) #19
Steven Holte
lgtm
3 years, 10 months ago (2017-01-27 21:01:11 UTC) #20
Nathan Parker
lgtm https://codereview.chromium.org/2644133005/diff/100001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2644133005/diff/100001/chrome/browser/safe_browsing/download_protection_service.cc#newcode1244 chrome/browser/safe_browsing/download_protection_service.cc:1244: web_contents ? web_contents->GetLastCommittedURL():GURL()), nit: add spaces around : ...
3 years, 10 months ago (2017-01-27 22:53:38 UTC) #21
Jialiu Lin
Thanks! https://codereview.chromium.org/2644133005/diff/100001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2644133005/diff/100001/chrome/browser/safe_browsing/download_protection_service.cc#newcode1244 chrome/browser/safe_browsing/download_protection_service.cc:1244: web_contents ? web_contents->GetLastCommittedURL():GURL()), On 2017/01/27 22:53:37, Nathan Parker ...
3 years, 10 months ago (2017-01-27 23:25:06 UTC) #22
Jialiu Lin
Thanks! https://codereview.chromium.org/2644133005/diff/100001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2644133005/diff/100001/chrome/browser/safe_browsing/download_protection_service.cc#newcode1244 chrome/browser/safe_browsing/download_protection_service.cc:1244: web_contents ? web_contents->GetLastCommittedURL():GURL()), On 2017/01/27 22:53:37, Nathan Parker ...
3 years, 10 months ago (2017-01-27 23:25:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2644133005/140001
3 years, 10 months ago (2017-01-31 23:33:53 UTC) #33
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 00:40:20 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/de82ac84d9c24e3910cfc4c20d81...

Powered by Google App Engine
This is Rietveld 408576698