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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp

Issue 2519843002: Update ResourceResponse::encodedDataLength when response is completed (Closed)
Patch Set: Update ResourceResponse::encodedDataLength when response is completed Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
index 801b324af00ce6304fd1890de44a39028a7fe8d5..1c9fd3a59b1b6274383c87e2b2060006e5405300 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
@@ -1122,11 +1122,11 @@ ArchiveResource* ResourceFetcher::createArchive(Resource* resource) {
void ResourceFetcher::didFinishLoading(Resource* resource,
double finishTime,
- int64_t encodedDataLength,
DidFinishLoadingReason finishReason) {
network_instrumentation::endResourceLoad(
resource->identifier(), network_instrumentation::RequestOutcome::Success);
DCHECK(resource);
+ const int64_t encodedDataLength = resource->response().encodedDataLength();
// When loading a multipart resource, make the loader non-block when finishing
// loading the first part.
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.h ('k') | third_party/WebKit/Source/core/fetch/ResourceLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698