summaryrefslogtreecommitdiffstats
path: root/components/network_hints/renderer
diff options
context:
space:
mode:
authorcpu <cpu@chromium.org>2015-02-11 16:46:22 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-12 00:47:05 +0000
commit50bc7eadc783059e840b9f08588d755db3f6289a (patch)
tree01374efec1933e6d5e0253b655341f2c64ac676c /components/network_hints/renderer
parent6875d4e0e4db94ab8ca1151adf316325d93c4dc5 (diff)
downloadchromium_src-50bc7eadc783059e840b9f08588d755db3f6289a.zip
chromium_src-50bc7eadc783059e840b9f08588d755db3f6289a.tar.gz
chromium_src-50bc7eadc783059e840b9f08588d755db3f6289a.tar.bz2
removing all the code related to chrome://stats
this is all broken and has been for a while. Since then, 2012 to 2013 other, sytem-specific systems have been used. Note that there is a v8 test that is using the stats table. Hoping to sort this now. BUG=149742 Review URL: https://codereview.chromium.org/899753002 Cr-Commit-Position: refs/heads/master@{#315890}
Diffstat (limited to 'components/network_hints/renderer')
-rw-r--r--components/network_hints/renderer/dns_prefetch_queue.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/components/network_hints/renderer/dns_prefetch_queue.cc b/components/network_hints/renderer/dns_prefetch_queue.cc
index 8328df9..af34d8d 100644
--- a/components/network_hints/renderer/dns_prefetch_queue.cc
+++ b/components/network_hints/renderer/dns_prefetch_queue.cc
@@ -7,7 +7,6 @@
#include "components/network_hints/renderer/dns_prefetch_queue.h"
#include "base/logging.h"
-#include "base/metrics/stats_counters.h"
namespace network_hints {
@@ -46,8 +45,6 @@ DnsQueue::PushResult DnsQueue::Push(const char* source,
if (0 < size_ && readable_ + length < buffer_sentinel_ &&
0 == strncmp(source, &buffer_[readable_], unsigned_length) &&
'\0' == buffer_[readable_ + unsigned_length]) {
- SIMPLE_STATS_COUNTER("DNS.PrefetchDnsRedundantPush");
-
// We already wrote this name to the queue, so we'll skip this repeat.
return REDUNDANT_PUSH;
}
@@ -63,10 +60,8 @@ DnsQueue::PushResult DnsQueue::Push(const char* source,
available_space += buffer_size_;
}
- if (length + 1 >= available_space) {
- SIMPLE_STATS_COUNTER("DNS.PrefetchDnsQueueFull");
+ if (length + 1 >= available_space)
return OVERFLOW_PUSH; // Not enough space to push.
- }
BufferSize dest = writeable_;
BufferSize space_till_wrap = buffer_sentinel_ - dest;