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

Unified Diff: chrome/browser/net/http_pipelining_compatibility_client.cc

Issue 140893013: Clean up dependencies for disk_cache histogram_macros.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup pipelining compatibility client Created 6 years, 10 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 | « no previous file | net/disk_cache/backend_impl.cc » ('j') | net/disk_cache/backend_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/http_pipelining_compatibility_client.cc
diff --git a/chrome/browser/net/http_pipelining_compatibility_client.cc b/chrome/browser/net/http_pipelining_compatibility_client.cc
index 4ccafbbdb2875f8d05b3c57c04fa8ce065fcc7f8..2ac129fa718637a04aee11ccfc6817bf9661199c 100644
--- a/chrome/browser/net/http_pipelining_compatibility_client.cc
+++ b/chrome/browser/net/http_pipelining_compatibility_client.cc
@@ -15,7 +15,6 @@
#include "net/base/load_flags.h"
#include "net/base/network_change_notifier.h"
#include "net/base/request_priority.h"
-#include "net/disk_cache/histogram_macros.h"
#include "net/http/http_network_layer.h"
#include "net/http/http_network_session.h"
#include "net/http/http_response_headers.h"
@@ -25,6 +24,13 @@
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
+
+// This is included because the CACHE_HISTOGRAM_* macros allow dynamic metric
+// names.
+// TODO(gavinp,rvargas): Clean up this dependency by moving the needed
rvargas (doing something else) 2014/02/11 02:17:15 TODOs reference the person that added the line, no
gavinp 2014/02/11 16:12:45 Done. However, do note that http://google-stylegu
+// functionality into base/.
+#include "net/disk_cache/histogram_macros.h"
+
namespace chrome_browser_net {
static const int kCanaryRequestId = 999;
@@ -364,8 +370,6 @@ void HttpPipeliningCompatibilityClient::OnCanaryFinished(
void HttpPipeliningCompatibilityClient::OnRequestFinished(
int request_id, internal::PipelineTestRequest::Status status) {
- // The CACHE_HISTOGRAM_* macros are used, because they allow dynamic metric
- // names.
CACHE_HISTOGRAM_ENUMERATION(GetMetricName(request_id, "Status"),
status,
internal::PipelineTestRequest::STATUS_MAX);
« no previous file with comments | « no previous file | net/disk_cache/backend_impl.cc » ('j') | net/disk_cache/backend_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698