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

Issue 8468020: Propagate the SafeBrowsing download protection verdict to the DownloadItem. (Closed)

Created:
9 years, 1 month ago by noelutz
Modified:
9 years, 1 month ago
CC:
chromium-reviews, jam, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Propagate the SafeBrowsing download protection verdict to the DownloadItem. This is where the UI will be notified when a malicious binary is being downloaded. The UI currently does not support displaying a warning after the download started. We'll fix that in a separate CL. BUG=102540 TEST=No visible changes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110583

Patch Set 1 #

Patch Set 2 : fix unit-tests #

Patch Set 3 : Add missing file and fix some unit-tests #

Total comments: 6

Patch Set 4 : Address Asanka's comments #

Patch Set 5 : Add danger state to the download extension API. I couldn't find any static docs for that API. #

Total comments: 1

Patch Set 6 : Address Ben's comment. #

Total comments: 18

Patch Set 7 : Address Randy's comments. #

Patch Set 8 : fix typo #

Total comments: 2

Patch Set 9 : Merge #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -152 lines) Patch
M chrome/browser/download/chrome_download_manager_delegate.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 chunks +46 lines, -27 lines 0 comments Download
M chrome/browser/download/download_extension_api.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/download_extension_api.cc View 1 2 3 4 5 6 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/download/download_item_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/download/download_manager_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +18 lines, -34 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_controller.mm View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/download/download_item_gtk.cc View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -1 line 2 comments Download
M content/browser/download/download_item.h View 1 2 3 4 5 6 3 chunks +4 lines, -20 lines 0 comments Download
M content/browser/download/download_item.cc View 1 2 3 4 5 6 6 chunks +17 lines, -33 lines 0 comments Download
M content/browser/download/download_state_info.h View 1 2 3 4 5 6 3 chunks +28 lines, -7 lines 0 comments Download
M content/browser/download/download_state_info.cc View 1 2 3 4 5 6 3 chunks +11 lines, -9 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
noelutz
9 years, 1 month ago (2011-11-15 21:50:14 UTC) #1
noelutz
On 2011/11/15 21:50:14, noelutz wrote: please wait before reviewing this CL. I made a mistake ...
9 years, 1 month ago (2011-11-16 00:11:46 UTC) #2
noelutz
On 2011/11/16 00:11:46, noelutz wrote: > On 2011/11/15 21:50:14, noelutz wrote: > > please wait ...
9 years, 1 month ago (2011-11-16 00:49:00 UTC) #3
asanka
http://codereview.chromium.org/8468020/diff/3007/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/8468020/diff/3007/chrome/browser/download/chrome_download_manager_delegate.cc#newcode299 chrome/browser/download/chrome_download_manager_delegate.cc:299: ChromeDownloadManagerDelegate::download_protection_service() { Nit: This is not a trivial accessor. ...
9 years, 1 month ago (2011-11-16 03:23:48 UTC) #4
noelutz
Thanks. Please take another look. noé. http://codereview.chromium.org/8468020/diff/3007/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/8468020/diff/3007/chrome/browser/download/chrome_download_manager_delegate.cc#newcode299 chrome/browser/download/chrome_download_manager_delegate.cc:299: ChromeDownloadManagerDelegate::download_protection_service() { On ...
9 years, 1 month ago (2011-11-16 03:50:26 UTC) #5
asanka
[+benjhayden: for the addition to the extensions API] Sorry I missed it in the previous ...
9 years, 1 month ago (2011-11-16 04:55:12 UTC) #6
noelutz
Done. I couldn't find any documentation to update in chrome/common/extensions/docs/static/. Let me know if I'm ...
9 years, 1 month ago (2011-11-16 05:10:13 UTC) #7
benjhayden
download_extension_api.cc and extension_api.json LGTM.
9 years, 1 month ago (2011-11-16 15:45:39 UTC) #8
benjhayden
Still LGTM, one minor request. http://codereview.chromium.org/8468020/diff/3011/content/browser/download/download_item.cc File content/browser/download/download_item.cc (right): http://codereview.chromium.org/8468020/diff/3011/content/browser/download/download_item.cc#newcode105 content/browser/download/download_item.cc:105: // Note: |dangerous_url| takes ...
9 years, 1 month ago (2011-11-16 15:57:22 UTC) #9
noelutz
Thanks, noé.
9 years, 1 month ago (2011-11-16 16:48:35 UTC) #10
Randy Smith (Not in Mondays)
Comments on interface, datastructures, and basic flow. I don't think these'll change the detailed flow ...
9 years, 1 month ago (2011-11-16 17:52:41 UTC) #11
Randy Smith (Not in Mondays)
What are the plans for adding automated testing for these cases? http://codereview.chromium.org/8468020/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): ...
9 years, 1 month ago (2011-11-16 18:04:03 UTC) #12
asanka
http://codereview.chromium.org/8468020/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/8468020/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode438 chrome/browser/download/chrome_download_manager_delegate.cc:438: service->IsSupportedFileType(state.suggested_path.BaseName())) { On 2011/11/16 17:52:41, rdsmith wrote: > Asanka: ...
9 years, 1 month ago (2011-11-16 18:34:05 UTC) #13
Randy Smith (Not in Mondays)
On 2011/11/16 18:34:05, asanka wrote: > http://codereview.chromium.org/8468020/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc > File chrome/browser/download/chrome_download_manager_delegate.cc (right): > > http://codereview.chromium.org/8468020/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode438 > ...
9 years, 1 month ago (2011-11-16 20:27:58 UTC) #14
noelutz
Please take another look. Thanks, noe. http://codereview.chromium.org/8468020/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/8468020/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode89 chrome/browser/download/chrome_download_manager_delegate.cc:89: #if defined(ENABLE_SAFE_BROWSING) On ...
9 years, 1 month ago (2011-11-16 23:15:07 UTC) #15
Randy Smith (Not in Mondays)
I'll give my LGTM now, since I'm ok with the code going in with both ...
9 years, 1 month ago (2011-11-17 16:49:31 UTC) #16
noelutz
Thanks, noé. http://codereview.chromium.org/8468020/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/8468020/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode89 chrome/browser/download/chrome_download_manager_delegate.cc:89: #if defined(ENABLE_SAFE_BROWSING) On 2011/11/17 16:49:31, rdsmith wrote: ...
9 years, 1 month ago (2011-11-17 17:05:44 UTC) #17
noelutz
Thanks, noé.
9 years, 1 month ago (2011-11-17 17:05:45 UTC) #18
Randy Smith (Not in Mondays)
On 2011/11/17 17:05:44, noelutz wrote: > Thanks, > noé. > > http://codereview.chromium.org/8468020/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc > File chrome/browser/download/chrome_download_manager_delegate.cc ...
9 years, 1 month ago (2011-11-17 17:14:29 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noelutz@google.com/8468020/19001
9 years, 1 month ago (2011-11-17 17:43:19 UTC) #20
commit-bot: I haz the power
Can't apply patch for file chrome/browser/download/download_manager_unittest.cc. While running patch -p1 --forward --force; patching file chrome/browser/download/download_manager_unittest.cc ...
9 years, 1 month ago (2011-11-17 17:43:24 UTC) #21
noelutz
I'm not sure typedefing the enum will help much. To test if the danger type ...
9 years, 1 month ago (2011-11-17 18:14:21 UTC) #22
Randy Smith (Not in Mondays)
On 2011/11/17 18:14:21, noelutz wrote: > I'm not sure typedefing the enum will help much. ...
9 years, 1 month ago (2011-11-17 18:15:24 UTC) #23
noelutz
On Thu, Nov 17, 2011 at 10:15 AM, <rdsmith@chromium.org> wrote: > On 2011/11/17 18:14:21, noelutz ...
9 years, 1 month ago (2011-11-17 18:16:45 UTC) #24
Randy Smith (Not in Mondays)
On 2011/11/17 18:16:45, noelutz wrote: > On Thu, Nov 17, 2011 at 10:15 AM, <mailto:rdsmith@chromium.org> ...
9 years, 1 month ago (2011-11-17 18:39:07 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noelutz@google.com/8468020/30001
9 years, 1 month ago (2011-11-17 20:20:46 UTC) #26
commit-bot: I haz the power
Presubmit check for 8468020-30001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 1 month ago (2011-11-17 20:20:54 UTC) #27
noelutz
+mihaip for LGTM for my changes to extension_api.json. thanks, noé.
9 years, 1 month ago (2011-11-17 20:27:31 UTC) #28
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/8468020/diff/30001/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/8468020/diff/30001/chrome/common/extensions/api/extension_api.json#newcode4318 chrome/common/extensions/api/extension_api.json:4318: "description": "The download's URL is malicious." Is the ...
9 years, 1 month ago (2011-11-17 20:30:25 UTC) #29
noelutz
thanks, noé. http://codereview.chromium.org/8468020/diff/30001/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/8468020/diff/30001/chrome/common/extensions/api/extension_api.json#newcode4318 chrome/common/extensions/api/extension_api.json:4318: "description": "The download's URL is malicious." On ...
9 years, 1 month ago (2011-11-17 21:25:16 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noelutz@google.com/8468020/30001
9 years, 1 month ago (2011-11-17 21:31:04 UTC) #31
commit-bot: I haz the power
9 years, 1 month ago (2011-11-17 22:47:43 UTC) #32
Change committed as 110583

Powered by Google App Engine
This is Rietveld 408576698