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

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

Issue 2138713002: sandwich: Fix some trivial failures on SWR benchmark runs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses Egor's comments 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') | tools/android/loading/sandwich_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/sandwich_swr.py
diff --git a/tools/android/loading/sandwich_swr.py b/tools/android/loading/sandwich_swr.py
index a902f4da851bcc1a0535526897dabad8f71a116c..e6b3736b50bd93b844295b8b9ed9180ffad89ef5 100644
--- a/tools/android/loading/sandwich_swr.py
+++ b/tools/android/loading/sandwich_swr.py
@@ -96,6 +96,8 @@ def _BuildBenchmarkCache(
cache_backend.DeleteKey(request.url)
delete_count += 1
continue
+ if not request.HasReceivedResponse():
+ continue
if request.url in urls_to_enable_swr:
request.SetHTTPResponseHeader(
'cache-control', 'max-age=0,stale-while-revalidate=315360000')
« no previous file with comments | « tools/android/loading/request_track.py ('k') | tools/android/loading/sandwich_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698