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

Issue 1183723006: Make ResourceDispatcherHostImpl::DidReceiveResponse less repetitive (Closed)

Created:
5 years, 6 months ago by Adam Rice
Modified:
5 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@s-w-r-net
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ResourceDispatcherHostImpl::DidReceiveResponse less repetitive Initialise a |request| variable with the value of loader->request() to avoid repeating it in 4 different places. BUG=none TEST=content_unittests Committed: https://crrev.com/cae5a8f3fb76f261cd191e9a7b3e3deed30e63c2 Cr-Commit-Position: refs/heads/master@{#335228}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove unnecessary line break. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -6 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (4 generated)
Adam Rice
5 years, 6 months ago (2015-06-16 19:23:15 UTC) #2
tyoshino (SeeGerritForStatus)
lgtm
5 years, 6 months ago (2015-06-18 07:08:49 UTC) #3
Adam Rice
+mmenke for OWNERS. Background: https://codereview.chromium.org/1041993004/ will crease the number of uses of |request| to 5. ...
5 years, 6 months ago (2015-06-18 08:16:57 UTC) #5
mmenke
LGTM. Not sure it's really worth a separate patch, but I have no objections. https://codereview.chromium.org/1183723006/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc ...
5 years, 6 months ago (2015-06-18 14:47:16 UTC) #6
tyoshino (SeeGerritForStatus)
On 2015/06/18 14:47:16, mmenke wrote: > LGTM. > > Not sure it's really worth a ...
5 years, 6 months ago (2015-06-19 04:55:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183723006/20001
5 years, 6 months ago (2015-06-19 06:59:36 UTC) #10
Adam Rice
https://codereview.chromium.org/1183723006/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1183723006/diff/1/content/browser/loader/resource_dispatcher_host_impl.cc#newcode837 content/browser/loader/resource_dispatcher_host_impl.cc:837: GetCertID(request, info->GetChildID()))); On 2015/06/18 14:47:15, mmenke wrote: > optional: ...
5 years, 6 months ago (2015-06-19 07:00:23 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 6 months ago (2015-06-19 08:33:38 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/cae5a8f3fb76f261cd191e9a7b3e3deed30e63c2 Cr-Commit-Position: refs/heads/master@{#335228}
5 years, 6 months ago (2015-06-19 08:34:34 UTC) #13
mmenke
On 2015/06/19 04:55:16, tyoshino wrote: > On 2015/06/18 14:47:16, mmenke wrote: > > LGTM. > ...
5 years, 6 months ago (2015-06-19 11:39:51 UTC) #14
tyoshino (SeeGerritForStatus)
5 years, 6 months ago (2015-06-19 12:14:15 UTC) #15
Message was sent while issue was closed.
On 2015/06/19 11:39:51, mmenke wrote:
> On 2015/06/19 04:55:16, tyoshino wrote:
> > On 2015/06/18 14:47:16, mmenke wrote:
> > > LGTM.
> > > 
> > > Not sure it's really worth a separate patch, but I have no objections.
> > 
> > Thanks for review.
> > 
> > I've suggested to do so as it reduces the diff on the main patch. Do you
> > recommend not to do like this basically?
> 
> I don't think this is quite substantial enough to be worth separating out - if
> it were larger, or changed/fixed behavior, I'd agree.  Regardless, if you feel
> it makes the other CL easier to review, it's the right call.

Got it.

Powered by Google App Engine
This is Rietveld 408576698