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

Unified Diff: net/http/http_network_transaction.cc

Issue 17471: Measure how often the users are encountering MD5... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « net/build/net.vcproj ('k') | net/net.xcodeproj/project.pbxproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.cc
===================================================================
--- net/http/http_network_transaction.cc (revision 7755)
+++ net/http/http_network_transaction.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/trace_event.h"
#include "build/build_config.h"
#include "net/base/client_socket_factory.h"
+#include "net/base/connection_type_histograms.h"
#include "net/base/dns_resolution_observer.h"
#include "net/base/host_resolver.h"
#include "net/base/load_flags.h"
@@ -62,6 +63,8 @@
int HttpNetworkTransaction::Start(const HttpRequestInfo* request_info,
CompletionCallback* callback) {
+ UpdateConnectionTypeHistograms(CONNECTION_ANY);
+
request_ = request_info;
next_state_ = STATE_RESOLVE_PROXY;
@@ -1054,7 +1057,7 @@
void HttpNetworkTransaction::AddAuthorizationHeader(HttpAuth::Target target) {
// If we have no authentication information, check if we can select
// a cache entry preemptively (based on the path).
- if(!HaveAuth(target) && !SelectPreemptiveAuth(target))
+ if (!HaveAuth(target) && !SelectPreemptiveAuth(target))
return;
DCHECK(HaveAuth(target));
@@ -1114,7 +1117,7 @@
// Note: we require the username/password to match before invalidating
// since the entry in the cache may be newer than what we used last time.
session_->auth_cache()->Remove(AuthOrigin(target),
- auth_handler_[target]->realm(),
+ auth_handler_[target]->realm(),
auth_identity_[target].username,
auth_identity_[target].password);
}
« no previous file with comments | « net/build/net.vcproj ('k') | net/net.xcodeproj/project.pbxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698