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

Issue 7466003: MD5Update function uses StringPiece instead of raw buffer. (Closed)

Created:
9 years, 5 months ago by dominich
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

MD5Update function uses StringPiece instead of raw buffer. BUG=none TEST=base_unittests --gtest_filter=MD5.ContextWithStringData* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94203

Patch Set 1 #

Patch Set 2 : Adding override for int #

Patch Set 3 : Moved to StringPiece #

Total comments: 1

Patch Set 4 : Remove wrapper #

Patch Set 5 : added valid license #

Total comments: 10

Patch Set 6 : tfarina review #

Total comments: 1

Patch Set 7 : Remove line from license. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -44 lines) Patch
M base/md5.h View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download
M base/md5.cc View 1 2 3 4 5 6 3 chunks +10 lines, -4 lines 0 comments Download
M base/md5_unittest.cc View 1 2 3 4 5 2 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_codec.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/prefix_set.cc View 1 2 4 chunks +17 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/prefix_set_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_store_file.cc View 1 2 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/sync/util/user_settings.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/metrics_helpers.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/visitedlink_common.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M media/test/ffmpeg_tests/ffmpeg_tests.cc View 1 2 3 3 chunks +10 lines, -5 lines 0 comments Download
M media/tools/media_bench/media_bench.cc View 1 2 3 2 chunks +10 lines, -4 lines 0 comments Download
M net/http/http_vary_data.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (0 generated)
dominich
This is a speculative CL. If you approve, I would extend it to cover more ...
9 years, 5 months ago (2011-07-20 17:39:22 UTC) #1
brettw
I'd rather not do the templates. If the current API is inconvenient, I'm happy changing ...
9 years, 5 months ago (2011-07-20 17:46:23 UTC) #2
dominich
On 2011/07/20 17:46:23, brettw wrote: > I'd rather not do the templates. If the current ...
9 years, 5 months ago (2011-07-20 17:54:36 UTC) #3
brettw
We should be trying to make the code more simple and easy to understand. Adding ...
9 years, 5 months ago (2011-07-20 17:58:35 UTC) #4
Evan Martin
On 2011/07/20 17:58:35, brettw wrote: > We should be trying to make the code more ...
9 years, 5 months ago (2011-07-20 18:03:35 UTC) #5
dominich
On 2011/07/20 17:58:35, brettw wrote: > We should be trying to make the code more ...
9 years, 5 months ago (2011-07-20 18:10:07 UTC) #6
Evan Martin
On 2011/07/20 18:10:07, dominich wrote: > On 2011/07/20 17:58:35, brettw wrote: > > We should ...
9 years, 5 months ago (2011-07-20 18:18:16 UTC) #7
dominich
On 2011/07/20 18:18:16, Evan Martin wrote: > On 2011/07/20 18:10:07, dominich wrote: > > On ...
9 years, 5 months ago (2011-07-20 18:24:03 UTC) #8
dominich
On 2011/07/20 18:24:03, dominich wrote: > On 2011/07/20 18:18:16, Evan Martin wrote: > > On ...
9 years, 5 months ago (2011-07-20 18:26:56 UTC) #9
Evan Martin
> While I'm in there, any objections to me re-indenting and getting rid of things ...
9 years, 5 months ago (2011-07-20 18:28:16 UTC) #10
dominich
On 2011/07/20 18:28:16, Evan Martin wrote: > > While I'm in there, any objections to ...
9 years, 5 months ago (2011-07-20 18:33:10 UTC) #11
dominich
9 years, 5 months ago (2011-07-20 19:55:39 UTC) #12
brettw
http://codereview.chromium.org/7466003/diff/3002/base/md5.cc File base/md5.cc (right): http://codereview.chromium.org/7466003/diff/3002/base/md5.cc#newcode214 base/md5.cc:214: void MD5Update(MD5Context* context, const StringPiece& data) { I think ...
9 years, 5 months ago (2011-07-20 20:26:28 UTC) #13
dominich
Removed the wrapper function and changed MD5String to use StringPiece for consistency. I would also ...
9 years, 5 months ago (2011-07-20 22:14:20 UTC) #14
brettw
LGTM
9 years, 5 months ago (2011-07-21 17:06:26 UTC) #15
commit-bot: I haz the power
Presubmit check for 7466003-3018 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 5 months ago (2011-07-21 19:29:10 UTC) #16
dominich
Adding owners for net/ and chrome/browser/sync. gavinp: please look at the net/ changes akalin: please ...
9 years, 5 months ago (2011-07-21 19:37:52 UTC) #17
akalin
sync changes LGTM
9 years, 5 months ago (2011-07-21 19:49:57 UTC) #18
dominich
cbentzel: As gavinp is out could you look at the net/ changes?
9 years, 5 months ago (2011-07-21 20:52:08 UTC) #19
cbentzel
net LGTM
9 years, 5 months ago (2011-07-21 20:57:46 UTC) #20
gavinp
net changes LGTM. I'm not on vacation until tomorrow though...
9 years, 5 months ago (2011-07-21 22:16:26 UTC) #21
tfarina
http://codereview.chromium.org/7466003/diff/10001/base/md5_unittest.cc File base/md5_unittest.cc (right): http://codereview.chromium.org/7466003/diff/10001/base/md5_unittest.cc#newcode197 base/md5_unittest.cc:197: std::string expected = "900150983cd24fb0d6963f7d28e17f72"; could you move expected near ...
9 years, 5 months ago (2011-07-21 22:18:54 UTC) #22
tfarina
http://codereview.chromium.org/7466003/diff/10001/base/md5.cc File base/md5.cc (right): http://codereview.chromium.org/7466003/diff/10001/base/md5.cc#newcode4 base/md5.cc:4: // Copyright (c) 2011 The Chromium Authors. All rights ...
9 years, 5 months ago (2011-07-21 22:21:24 UTC) #23
commit-bot: I haz the power
Commit queue failed due to updated description.
9 years, 5 months ago (2011-07-22 03:56:30 UTC) #24
dominich
http://codereview.chromium.org/7466003/diff/10001/base/md5.cc File base/md5.cc (right): http://codereview.chromium.org/7466003/diff/10001/base/md5.cc#newcode4 base/md5.cc:4: // Copyright (c) 2011 The Chromium Authors. All rights ...
9 years, 5 months ago (2011-07-25 20:58:27 UTC) #25
brettw
still LGTM http://codereview.chromium.org/7466003/diff/16001/base/md5.cc File base/md5.cc (right): http://codereview.chromium.org/7466003/diff/16001/base/md5.cc#newcode6 base/md5.cc:6: // Modifications Copyright 2006 Google Inc. All ...
9 years, 5 months ago (2011-07-26 04:35:58 UTC) #26
commit-bot: I haz the power
9 years, 5 months ago (2011-07-26 23:39:53 UTC) #27
Change committed as 94203

Powered by Google App Engine
This is Rietveld 408576698