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

Issue 2681783003: Since SafeBrowsingNavigationObserverManager cleans up navigation events every two minutes, if downl… (Closed)

Created:
3 years, 10 months ago by Jialiu Lin
Modified:
3 years, 10 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

Since SafeBrowsingNavigationObserverManager cleans up navigation events every two minutes, if downloading a file takes more than 2 minutes, we'll get nothing from the attribution logic. Therefore, this CL moves the download attribution logic to after download url checking (before download starts). This CL also changes the way of how referrer chain is constructed. Instead of putting referrer entries in a temporary vector, I put them directly into a RepeatedPtrField<ReferrerChainEntry> to avoid extra copying/moving operations. This should mitigate the out-of -memory issue. BUG=683299, 676675 Review-Url: https://codereview.chromium.org/2647323004 Cr-Commit-Position: refs/heads/master@{#446761} (cherry picked from commit 20d16215e1bd867da6a23887046f4d6894222c00) Review-Url: https://codereview.chromium.org/2681783003 . Cr-Commit-Position: refs/branch-heads/2987@{#375} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/0d14f396060bdb6639dba6664ee77fe2f2e3e423

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -156 lines) Patch
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 11 chunks +94 lines, -43 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 5 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc View 25 chunks +84 lines, -86 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.h View 3 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc View 2 chunks +19 lines, -10 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
Jialiu Lin
3 years, 10 months ago (2017-02-08 01:45:13 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
0d14f396060bdb6639dba6664ee77fe2f2e3e423.

Powered by Google App Engine
This is Rietveld 408576698