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

Issue 2384713004: [downloads] Correctly plumb client ID for download file scanning. (Closed)

Created:
4 years, 2 months ago by asanka
Modified:
4 years, 2 months ago
Reviewers:
svaldez
CC:
chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[downloads] Correctly plumb client ID for download file scanning. The client GUID for download file scanning wasn't plumbed all the way through the download system. This caused the underlying quarantine logic to always apply the mark-of-the-web even if the local configuration wouldn't have required it. The plumbing for the client GUID was broken in 4350f6a0 (Mar 14, 2016). IAttachmentExecute::Save() continued to function since the client GUID is optional. However, bd57338f (Sep 21, 2016) made it so that Chrome sets the mark-of-the-web directly if no client GUID is present. This CL fixes the plumbing of the client GUID so that AttachmentServices is correctly invoked. Unit testing ensured that downloads were always receiving the MOTW when appropriate. However, there were no end-to-end test that was ensuring that the MOTW didn't get applied when it is not necessary. BUG=650111 Committed: https://crrev.com/db9e50adb265249e4082721b10d15050901be42b Cr-Commit-Position: refs/heads/master@{#422422}

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -1 line) Patch
M chrome/browser/download/download_browsertest.cc View 1 2 chunks +30 lines, -1 line 0 comments Download
M content/browser/download/download_manager_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
asanka
4 years, 2 months ago (2016-10-01 00:06:48 UTC) #4
svaldez
lgtm
4 years, 2 months ago (2016-10-03 14:37:18 UTC) #11
asanka
Thanks!
4 years, 2 months ago (2016-10-03 14:55:33 UTC) #12
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/2384713004/20001
4 years, 2 months ago (2016-10-03 14:55:52 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-03 15:00:49 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 15:02:56 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/db9e50adb265249e4082721b10d15050901be42b
Cr-Commit-Position: refs/heads/master@{#422422}

Powered by Google App Engine
This is Rietveld 408576698