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

Issue 648803002: Fix outstanding request stats for multiple transfer navigations. (Closed)

Created:
6 years, 2 months ago by Charlie Reis
Modified:
6 years, 2 months ago
Reviewers:
davidben
CC:
chromium-reviews, darin-cc_chromium.org, jam, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix outstanding request stats for multiple transfer navigations. The request stats are kept per process, and we were incorrectly transferring the entire process's stats when only a single request was being transferred. BUG=423570 TEST=Visit a page with 2 cross-site iframes using --site-per-process. Committed: https://crrev.com/e27ab4e207348d7829ee0ce7400f1d3129046441 Cr-Commit-Position: refs/heads/master@{#299769}

Patch Set 1 #

Patch Set 2 : Update count as well #

Patch Set 3 : Fix bug and add test #

Total comments: 2

Patch Set 4 : Track count on request info #

Total comments: 5

Patch Set 5 : Fix review suggestions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -21 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 4 chunks +23 lines, -15 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Charlie Reis
David, would you have a chance to look over this? We were doing the wrong ...
6 years, 2 months ago (2014-10-13 16:06:01 UTC) #2
davidben
https://codereview.chromium.org/648803002/diff/130004/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/648803002/diff/130004/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1010 content/browser/loader/resource_dispatcher_host_impl.cc:1010: bool should_update_count = stats.num_requests > 0; Hrm. Is this ...
6 years, 2 months ago (2014-10-13 17:40:04 UTC) #3
Charlie Reis
Thanks for catching that! https://codereview.chromium.org/648803002/diff/130004/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/648803002/diff/130004/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1010 content/browser/loader/resource_dispatcher_host_impl.cc:1010: bool should_update_count = stats.num_requests > ...
6 years, 2 months ago (2014-10-14 23:54:12 UTC) #5
davidben
lgtm with a couple comments. https://codereview.chromium.org/648803002/diff/370001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/648803002/diff/370001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1734 content/browser/loader/resource_dispatcher_host_impl.cc:1734: ResourceRequestInfoImpl& info) { Nit: ...
6 years, 2 months ago (2014-10-15 19:15:12 UTC) #6
Charlie Reis
Thanks! https://codereview.chromium.org/648803002/diff/370001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/648803002/diff/370001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1734 content/browser/loader/resource_dispatcher_host_impl.cc:1734: ResourceRequestInfoImpl& info) { On 2014/10/15 19:15:12, David Benjamin ...
6 years, 2 months ago (2014-10-15 19:48:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/648803002/390001
6 years, 2 months ago (2014-10-15 19:48:52 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:390001)
6 years, 2 months ago (2014-10-15 21:24:40 UTC) #10
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 21:25:36 UTC) #11
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e27ab4e207348d7829ee0ce7400f1d3129046441
Cr-Commit-Position: refs/heads/master@{#299769}

Powered by Google App Engine
This is Rietveld 408576698