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

Unified Diff: net/http/http_network_transaction.cc

Issue 19866006: [Net] Propagate priority changes from HttpNetworkTransaction to its request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: net/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index c26564cf1dff09438eb528155d9d2962cbb9e8b4..2ff0ad725f262a1c9b3f71d9be0b0be34331885a 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -419,8 +419,9 @@ bool HttpNetworkTransaction::GetLoadTimingInfo(
void HttpNetworkTransaction::SetPriority(RequestPriority priority) {
priority_ = priority;
- // TODO(akalin): Plumb this through to |stream_request_| and
- // |stream_|.
+ if (stream_request_)
+ stream_request_->SetPriority(priority);
+ // TODO(akalin): Plumb this through to |stream_| also.
}
void HttpNetworkTransaction::OnStreamReady(const SSLConfig& used_ssl_config,

Powered by Google App Engine
This is Rietveld 408576698