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

Unified Diff: net/socket/client_socket.cc

Issue 3191019: A/B experiment for re-establishing TCP connections (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « chrome/renderer/render_view.cc ('k') | net/socket/client_socket_pool_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket.cc
===================================================================
--- net/socket/client_socket.cc (revision 57274)
+++ net/socket/client_socket.cc (working copy)
@@ -4,6 +4,7 @@
#include "net/socket/client_socket.h"
+#include "base/field_trial.h"
#include "base/histogram.h"
namespace net {
@@ -41,7 +42,15 @@
result += 3;
else if (subresource_speculation_)
result += 6;
- UMA_HISTOGRAM_ENUMERATION("Net.PreconnectUtilization", result, 9);
+
+ static const bool connect_backup_jobs_fieldtrial =
+ FieldTrialList::Find("ConnnectBackupJobs") &&
+ !FieldTrialList::Find("ConnnectBackupJobs")->group_name().empty();
+ if (connect_backup_jobs_fieldtrial) {
+ UMA_HISTOGRAM_ENUMERATION(
+ FieldTrial::MakeName("Net.PreconnectUtilization", "ConnnectBackupJobs"),
+ result, 9);
+ }
}
void ClientSocket::SetSubresourceSpeculation() {
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | net/socket/client_socket_pool_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698