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

Unified Diff: remoting/host/url_request_context.cc

Issue 10069020: Log Gaia response codes to ease diagnostics of networking issues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding a missing dependency. 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
« no previous file with comments | « remoting/host/url_request_context.h ('k') | remoting/host/vlog_net_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/url_request_context.cc
diff --git a/remoting/host/url_request_context.cc b/remoting/host/url_request_context.cc
index 39c4974ef0176a00097980c5f9f47182780cb40e..83451a7ac7a8fe999605ba435a18a9892d286492 100644
--- a/remoting/host/url_request_context.cc
+++ b/remoting/host/url_request_context.cc
@@ -22,12 +22,14 @@ namespace remoting {
URLRequestContext::URLRequestContext(
net::ProxyConfigService* proxy_config_service)
: ALLOW_THIS_IN_INITIALIZER_LIST(storage_(this)) {
+ net_log_.reset(new VlogNetLog());
+
storage_.set_host_resolver(
net::CreateSystemHostResolver(net::HostResolver::kDefaultParallelism,
net::HostResolver::kDefaultRetryAttempts,
- NULL));
+ net_log_.get()));
storage_.set_proxy_service(net::ProxyService::CreateUsingSystemProxyResolver(
- proxy_config_service, 0u, NULL));
+ proxy_config_service, 0u, net_log_.get()));
storage_.set_cert_verifier(net::CertVerifier::CreateDefault());
storage_.set_ssl_config_service(new net::SSLConfigServiceDefaults);
storage_.set_http_auth_handler_factory(
@@ -41,6 +43,7 @@ URLRequestContext::URLRequestContext(
session_params.ssl_config_service = ssl_config_service();
session_params.http_auth_handler_factory = http_auth_handler_factory();
session_params.http_server_properties = http_server_properties();
+ session_params.net_log = net_log_.get();
scoped_refptr<net::HttpNetworkSession> network_session(
new net::HttpNetworkSession(session_params));
storage_.set_http_transaction_factory(
« no previous file with comments | « remoting/host/url_request_context.h ('k') | remoting/host/vlog_net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698