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

Unified Diff: tools/android/loading/sandwich_prefetch.py

Issue 2131973002: sandwich: Handle 200 responses with no data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unfortunate dependency Created 4 years, 5 months 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
« no previous file with comments | « tools/android/loading/request_track.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/sandwich_prefetch.py
diff --git a/tools/android/loading/sandwich_prefetch.py b/tools/android/loading/sandwich_prefetch.py
index 0201d8b98df428833b11475c9c4a12aa6140cc23..456c697b247b0be1bae2171c030e77d5caaec02f 100644
--- a/tools/android/loading/sandwich_prefetch.py
+++ b/tools/android/loading/sandwich_prefetch.py
@@ -354,10 +354,10 @@ def _ValidateCacheArchiveContent(cache_build_trace_path, cache_archive_path):
if request.url in effective_encoded_data_lengths:
effective_encoded_data_lengths[request.url] = max(
effective_encoded_data_lengths[request.url],
- request.GetEncodedDataLength())
+ request.GetResponseTransportLength())
else:
effective_encoded_data_lengths[request.url] = (
- request.GetEncodedDataLength())
+ request.GetResponseTransportLength())
upload_data_stream_cache_entry_keys = set()
upload_data_stream_requests = set()
@@ -436,7 +436,7 @@ def _ProcessRunOutputDir(
response_size = response_sizes[request.url]
served_from_cache_bytes += response_size
else:
- response_size = request.GetEncodedDataLength()
+ response_size = request.GetResponseTransportLength()
served_from_network_bytes += response_size
response_sizes[request.url] = response_size
« no previous file with comments | « tools/android/loading/request_track.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698