Add histogram for connection times for new connections

The existing histogram appears ot have too much "noise" introduced
by including existing connections.  The goal is to quantify
impact of DNS prefetching via an experiment, and this should
produce more focused info for that FieldTrial.

r=willchan
Review URL: http://codereview.chromium.org/90005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14073 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 654eb6a..0db4315 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -984,6 +984,14 @@
       total_duration,
       base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
       100);
+  if (!reused_socket_)
+    UMA_HISTOGRAM_CLIPPED_TIMES(
+        FieldTrial::MakeName(
+            "Net.Transaction_Connected_New",
+            "DnsImpact").data(),
+        total_duration,
+        base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
+        100);
 
   // Currently, non-zero priority requests are frame or sub-frame resource
   // types.  This will change when we also prioritize certain subresources like