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

Issue 1547593002: Introducing a net::GenerateMimeMultipartBoundary helper. (Closed)

Created:
5 years ago by Łukasz Anforowicz
Modified:
4 years, 11 months ago
CC:
chromium-reviews, asanka, cbentzel+watch_chromium.org, jam, darin-cc_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, ncarter (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introducing a net::GenerateMimeMultipartBoundary helper. ... and using the helper in places that had introduced separate functions for generating a random Mime boundary (sometimes with bugs - i.e. using '*' characters is disallowed by RFC 1341). TBR=bartfab@chromium.org, stevet@chromium.org BUG=575733 Committed: https://crrev.com/c644f37125ab27311d697af61e56c64d0e29027e Cr-Commit-Position: refs/heads/master@{#368404}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebased + fixed DriveApiRequestsTest.BatchUploadRequestProgress. #

Patch Set 4 : Self-review. #

Total comments: 10

Patch Set 5 : Addressed CR feedback from rsleevi@ #

Patch Set 6 : Rebasing... #

Total comments: 14

Patch Set 7 : Addressed CR feedback from hashimoto@ and bartfab@. #

Patch Set 8 : Rebasing... #

Patch Set 9 : Restricted the set of characters used in the generated boundary. #

Patch Set 10 : Rebasing... #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -151 lines) Patch
M chrome/browser/chromeos/policy/remote_commands/device_command_screenshot_job.cc View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/upload_job.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/upload_job_impl.h View 1 2 3 4 5 6 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/policy/upload_job_impl.cc View 1 2 3 4 5 6 6 chunks +10 lines, -72 lines 0 comments Download
M chrome/browser/chromeos/policy/upload_job_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/cloud_print/cloud_print_helpers.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/cloud_print/cloud_print_helpers.cc View 1 2 3 4 5 6 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/service/cloud_print/cloud_print_connector.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/service/cloud_print/printer_job_handler.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M cloud_print/gcp20/prototype/cloud_print_requester.cc View 1 2 3 4 5 6 2 chunks +1 line, -6 lines 0 comments Download
M components/search_engines/template_url.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -6 lines 0 comments Download
M content/browser/download/mhtml_generation_manager.cc View 1 2 3 4 5 6 7 5 chunks +2 lines, -23 lines 0 comments Download
M google_apis/drive/base_requests.cc View 1 2 3 4 5 6 4 chunks +2 lines, -15 lines 0 comments Download
M google_apis/drive/drive_api_requests_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M net/base/mime_util.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M net/base/mime_util.cc View 1 2 3 4 5 6 7 8 9 3 chunks +49 lines, -0 lines 1 comment Download
M net/base/mime_util_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/FormDataEncoder.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 30 (9 generated)
Łukasz Anforowicz
rsleevi@, could you please take a look? (focusing on changes to net/base/... files that you ...
5 years ago (2015-12-23 00:18:04 UTC) #2
Ryan Sleevi
Overall LG, although I haven't checked to see if there are any other places that ...
4 years, 11 months ago (2015-12-28 23:30:01 UTC) #3
Łukasz Anforowicz
Ryan, could you please take another look? On 2015/12/28 23:30:01, Ryan Sleevi wrote: > Overall ...
4 years, 11 months ago (2015-12-29 18:53:19 UTC) #4
Ryan Sleevi
LGTM. I was going to suggest some microoptimizations to preallocate the string but... meh, that's ...
4 years, 11 months ago (2015-12-29 21:18:03 UTC) #5
Łukasz Anforowicz
Vitaly, could you please take a look at: chrome/common/cloud_print/... chrome/service/cloud_print/... cloud_print/... ? For entropy considerations ...
4 years, 11 months ago (2015-12-29 22:19:02 UTC) #7
Vitaly Buka (NO REVIEWS)
lgtm
4 years, 11 months ago (2016-01-04 21:12:37 UTC) #8
Łukasz Anforowicz
bartfab@, hashimoto@, rdsmith@, stevet@ - could you please do an OWNERS review? bartfab@: chrome/browser/chromeos/policy/upload_job_impl.cc chrome/browser/chromeos/policy/upload_job_impl.h ...
4 years, 11 months ago (2016-01-04 21:45:27 UTC) #10
Łukasz Anforowicz
Adding bartfab@, hashimoto@, rdsmith@, stevet@ for real this time...
4 years, 11 months ago (2016-01-04 21:46:52 UTC) #12
hashimoto
https://codereview.chromium.org/1547593002/diff/100001/google_apis/drive/base_requests.cc File google_apis/drive/base_requests.cc (left): https://codereview.chromium.org/1547593002/diff/100001/google_apis/drive/base_requests.cc#oldcode237 google_apis/drive/base_requests.cc:237: bool conflict_with_content = false; The new implementation generates much ...
4 years, 11 months ago (2016-01-05 07:16:09 UTC) #13
bartfab (slow)
https://codereview.chromium.org/1547593002/diff/100001/chrome/browser/chromeos/policy/upload_job_impl.cc File chrome/browser/chromeos/policy/upload_job_impl.cc (left): https://codereview.chromium.org/1547593002/diff/100001/chrome/browser/chromeos/policy/upload_job_impl.cc#oldcode259 chrome/browser/chromeos/policy/upload_job_impl.cc:259: delegate_->OnFailure(CONTENT_ENCODING_ERROR); Nit: Remove CONTENT_ENCODING_ERROR from upload_job.h. It is no ...
4 years, 11 months ago (2016-01-05 14:20:46 UTC) #14
Randy Smith (Not in Mondays)
content/browser/download LGTM.
4 years, 11 months ago (2016-01-05 19:14:01 UTC) #15
Łukasz Anforowicz
hashimoto@ + bartfab@ - thanks for reviewing and providing feedback - I tried addressing it ...
4 years, 11 months ago (2016-01-05 19:16:49 UTC) #16
hashimoto
https://codereview.chromium.org/1547593002/diff/100001/google_apis/drive/base_requests.cc File google_apis/drive/base_requests.cc (left): https://codereview.chromium.org/1547593002/diff/100001/google_apis/drive/base_requests.cc#oldcode237 google_apis/drive/base_requests.cc:237: bool conflict_with_content = false; On 2016/01/05 19:16:49, Łukasz Anforowicz ...
4 years, 11 months ago (2016-01-07 05:15:48 UTC) #17
Łukasz Anforowicz
bartfab@, stevet@, haraken@ - could you please do an OWNERS review? hashimoto@ - thanks for ...
4 years, 11 months ago (2016-01-07 19:04:13 UTC) #19
haraken
WebKit LGTM
4 years, 11 months ago (2016-01-07 23:37:19 UTC) #20
Łukasz Anforowicz
I plan to TBR the rest of the files - I think I've addressed bartfab@'s ...
4 years, 11 months ago (2016-01-08 17:56:30 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547593002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547593002/180001
4 years, 11 months ago (2016-01-08 17:59:15 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 11 months ago (2016-01-08 19:35:12 UTC) #26
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/c644f37125ab27311d697af61e56c64d0e29027e Cr-Commit-Position: refs/heads/master@{#368404}
4 years, 11 months ago (2016-01-08 19:36:10 UTC) #28
Ryan Sleevi
https://codereview.chromium.org/1547593002/diff/180001/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/1547593002/diff/180001/net/base/mime_util.cc#newcode520 net/base/mime_util.cc:520: // to fail: (),./:=+ Sorry, I've been at a ...
4 years, 11 months ago (2016-01-08 19:55:04 UTC) #29
Łukasz Anforowicz
4 years, 11 months ago (2016-01-08 21:32:06 UTC) #30
Message was sent while issue was closed.
On 2016/01/08 19:55:04, Ryan Sleevi wrote:
> https://codereview.chromium.org/1547593002/diff/180001/net/base/mime_util.cc
> File net/base/mime_util.cc (right):
> 
>
https://codereview.chromium.org/1547593002/diff/180001/net/base/mime_util.cc#...
> net/base/mime_util.cc:520: // to fail: (),./:=+
> Sorry, I've been at a conference this week and haven't been able to stay on
top
> of code reviews.
> 
> I appreciate that there's concern, but I generally dislike magic comments and
> behaviour like this, because it doesn't have a bug, data, or measurements, so
it
> becomes secret incantation without quantifiable metrics.
> 
> Filed https://code.google.com/p/chromium/issues/detail?id=575779 to track
this;
> would you mind in a follow-up CL adding a pointer to that bug from this code,
so
> that we can make sure the reasoning/logic is tracked
> 
>
https://codereview.chromium.org/1547593002/diff/180001/third_party/WebKit/Sou...
> File third_party/WebKit/Source/platform/network/FormDataEncoder.cpp (right):
> 
>
https://codereview.chromium.org/1547593002/diff/180001/third_party/WebKit/Sou...
> third_party/WebKit/Source/platform/network/FormDataEncoder.cpp:102: //
> TODO(lukasza): Reuse net::GenerateMimeMultipartBoundary instead.
> I would have objected to this TODO - The Blink code shouldn't be pointing at
> //net code.

Following-up in https://codereview.chromium.org/1573623002/

Powered by Google App Engine
This is Rietveld 408576698