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

Issue 6023006: Add support to sha256 hash the downloaded file.... (Closed)

Created:
10 years ago by lzheng
Modified:
5 years, 1 month ago
CC:
chromium-reviews, rdsmith+dwatch_chromium.org, moheeb, xinzhao_google.com
Visibility:
Public.

Description

Add support to sha256 hash the downloaded file. BUG=60822 TEST=base_file_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71379

Patch Set 1 : '' #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Total comments: 15

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -28 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 chunk +5 lines, -9 lines 0 comments Download
MM chrome/browser/download/base_file.h View 1 2 3 5 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/download/base_file.cc View 1 2 3 5 chunks +36 lines, -3 lines 0 comments Download
MM chrome/browser/download/base_file_unittest.cc View 1 2 3 6 chunks +42 lines, -6 lines 0 comments Download
M chrome/browser/download/download_file.cc View 1 2 3 1 chunk +0 lines, -1 line 1 comment Download
M chrome/browser/download/download_file_manager.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/download/download_file_manager.cc View 1 2 3 3 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/download/save_file_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
lzheng
This change will enable clients that have download_protection_enabled to calculate sha256 hash for downloaded files. ...
9 years, 11 months ago (2011-01-10 22:57:49 UTC) #1
Scott Hess - ex-Googler
http://codereview.chromium.org/6023006/diff/43001/chrome/browser/download/base_file.h File chrome/browser/download/base_file.h (right): http://codereview.chromium.org/6023006/diff/43001/chrome/browser/download/base_file.h#newcode33 chrome/browser/download/base_file.h:33: bool calculate_hash); Is there any real advantage to making ...
9 years, 11 months ago (2011-01-10 23:12:07 UTC) #2
lzheng
http://codereview.chromium.org/6023006/diff/43001/chrome/browser/download/base_file.h File chrome/browser/download/base_file.h (right): http://codereview.chromium.org/6023006/diff/43001/chrome/browser/download/base_file.h#newcode33 chrome/browser/download/base_file.h:33: bool calculate_hash); I made the "GetSha256Hash" virtual. I am ...
9 years, 11 months ago (2011-01-11 01:06:44 UTC) #3
Paweł Hajdan Jr.
Drive-by with minor download comments. Also, can we avoid plumbing through the |calculate_hash| boolean, and ...
9 years, 11 months ago (2011-01-11 08:28:21 UTC) #4
Randy Smith (Not in Mondays)
Could you do a back-of-the-envelope calculation as to how much the hash calculation costs? All ...
9 years, 11 months ago (2011-01-11 18:29:51 UTC) #5
Randy Smith (Not in Mondays)
On 2011/01/11 18:29:51, rdsmith wrote: > http://codereview.chromium.org/6023006/diff/55001/chrome/browser/download/base_file.cc#newcode171 > chrome/browser/download/base_file.cc:171: > StringToLowerASCII(base::HexEncode(sha256_hash_, sizeof(sha256_hash_))); > This means ...
9 years, 11 months ago (2011-01-11 18:32:08 UTC) #6
Scott Hess - ex-Googler
On 2011/01/11 18:29:51, rdsmith wrote: > Could you do a back-of-the-envelope calculation as to how ...
9 years, 11 months ago (2011-01-11 18:45:43 UTC) #7
lzheng
I believe I addressed everyone's concerns (see details below), except the "hash or not hash" ...
9 years, 11 months ago (2011-01-12 02:11:54 UTC) #8
Randy Smith (Not in Mondays)
LGTM.
9 years, 11 months ago (2011-01-12 14:47:27 UTC) #9
Paweł Hajdan Jr.
LGTM, thanks
9 years, 11 months ago (2011-01-12 19:28:05 UTC) #10
Scott Hess - ex-Googler
9 years, 11 months ago (2011-01-13 22:58:08 UTC) #11
lgtm

http://codereview.chromium.org/6023006/diff/63003/chrome/browser/download/dow...
File chrome/browser/download/download_file.cc (left):

http://codereview.chromium.org/6023006/diff/63003/chrome/browser/download/dow...
chrome/browser/download/download_file.cc:28: 
Egregious whitespace change.  I agree with the change, but with no other changes
in this file, it's probably better to drop it.

Powered by Google App Engine
This is Rietveld 408576698