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

Unified Diff: chrome/browser/devtools/devtools_network_transaction.cc

Issue 2854303004: [DevTools] Do not add latency for pushed resources when throttling (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_network_transaction.cc
diff --git a/chrome/browser/devtools/devtools_network_transaction.cc b/chrome/browser/devtools/devtools_network_transaction.cc
index 710d4cf29ad7c33090dc233a45e2e60a43b051e8..71d37be213579276caa86d2cbdf34a14e34b6764 100644
--- a/chrome/browser/devtools/devtools_network_transaction.cc
+++ b/chrome/browser/devtools/devtools_network_transaction.cc
@@ -60,8 +60,11 @@ int DevToolsNetworkTransaction::Throttle(
if (start) {
throttled_byte_count_ += network_transaction_->GetTotalReceivedBytes();
net::LoadTimingInfo load_timing_info;
- if (GetLoadTimingInfo(&load_timing_info))
+ if (GetLoadTimingInfo(&load_timing_info)) {
send_end = load_timing_info.send_end;
+ if (!load_timing_info.push_start.is_null())
+ start = false;
+ }
if (send_end.is_null())
send_end = base::TimeTicks::Now();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698