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

Unified Diff: net/http/http_network_transaction.cc

Issue 10185007: [net] Change order of RequestPriority to natural: higher > lower (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use MINIMUM_PRIORITY instead of 0. Created 8 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
Index: net/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 0a88bb813ed4e3a00425d7ab02bd3f9a5b27f7ab..43df7ced5fac45c4290af12337f78319d8c95cbb 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1020,10 +1020,10 @@ void HttpNetworkTransaction::LogTransactionConnectedMetrics() {
}
}
- // Currently, non-zero priority requests are frame or sub-frame resource
+ // Currently, non-HIGHEST priority requests are frame or sub-frame resource
// types. This will change when we also prioritize certain subresources like
// css, js, etc.
- if (request_->priority) {
+ if (request_->priority != HIGHEST) {
UMA_HISTOGRAM_CUSTOM_TIMES(
"Net.Priority_High_Latency_b",
total_duration,

Powered by Google App Engine
This is Rietveld 408576698