Index: content/browser/loader/resource_loader.cc |
diff --git a/content/browser/loader/resource_loader.cc b/content/browser/loader/resource_loader.cc |
index 8c05ad21940fde80d31acd1a3a251237c4b9dc9c..3ae7756bbccb62dfe28fc99a938fab81191a3233 100644 |
--- a/content/browser/loader/resource_loader.cc |
+++ b/content/browser/loader/resource_loader.cc |
@@ -717,6 +717,16 @@ void ResourceLoader::RecordHistograms() { |
ResourceRequestInfoImpl* info = GetRequestInfo(); |
+ if (info->GetResourceType() == RESOURCE_TYPE_MAIN_FRAME) { |
+ UMA_HISTOGRAM_ENUMERATION("Net.HttpResponseInfo.ConnectionInfo.SubResource", |
Bence
2016/06/30 21:20:11
I think you got the two branches backwards.
mmenke
2016/06/30 22:18:07
Thanks for catching that! Done.
|
+ request_->response_info().connection_info, |
+ net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS); |
+ } else { |
+ UMA_HISTOGRAM_ENUMERATION("Net.HttpResponseInfo.ConnectionInfo.MainFrame", |
+ request_->response_info().connection_info, |
+ net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS); |
+ } |
+ |
if (info->GetResourceType() == RESOURCE_TYPE_PREFETCH) { |
PrefetchStatus status = STATUS_UNDEFINED; |
TimeDelta total_time = base::TimeTicks::Now() - request_->creation_time(); |