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

Unified Diff: jingle/glue/proxy_resolving_client_socket.cc

Issue 2666713002: [WebRTC] Copy HttpAuthCache from main request context into webrtc context (Closed)
Patch Set: Created 3 years, 11 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 | jingle/glue/proxy_resolving_client_socket_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/glue/proxy_resolving_client_socket.cc
diff --git a/jingle/glue/proxy_resolving_client_socket.cc b/jingle/glue/proxy_resolving_client_socket.cc
index a880b122075e19df73c501c860a4114cd5377d14..ccf7878f6f46806213db71fcc508850d2e67a148 100644
--- a/jingle/glue/proxy_resolving_client_socket.cc
+++ b/jingle/glue/proxy_resolving_client_socket.cc
@@ -17,6 +17,7 @@
#include "net/base/net_errors.h"
#include "net/http/http_auth_controller.h"
#include "net/http/http_network_session.h"
+#include "net/http/http_transaction_factory.h"
#include "net/http/proxy_client_socket.h"
#include "net/log/net_log_source_type.h"
#include "net/socket/client_socket_handle.h"
@@ -95,6 +96,13 @@ ProxyResolvingClientSocket::ProxyResolvingClientSocket(
}
network_session_.reset(new net::HttpNetworkSession(session_params));
+
+ net::HttpAuthCache* other_auth_cache =
+ request_context->http_transaction_factory()
+ ->GetSession()
+ ->http_auth_cache();
+ DCHECK(other_auth_cache);
+ network_session_->http_auth_cache()->UpdateAllFrom(*other_auth_cache);
}
ProxyResolvingClientSocket::~ProxyResolvingClientSocket() {
« no previous file with comments | « no previous file | jingle/glue/proxy_resolving_client_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698