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

Unified Diff: net/ftp/ftp_server_type_histograms.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « net/ftp/ftp_server_type_histograms.h ('k') | net/ftp/ftp_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_server_type_histograms.cc
diff --git a/net/ftp/ftp_server_type_histograms.cc b/net/ftp/ftp_server_type_histograms.cc
deleted file mode 100644
index 84592ed023f540284f2fea63c5dad79cfe959d23..0000000000000000000000000000000000000000
--- a/net/ftp/ftp_server_type_histograms.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/ftp/ftp_server_type_histograms.h"
-
-#include "base/metrics/histogram.h"
-
-namespace net {
-
-// We're using a histogram as a group of counters, with one bucket for each
-// enumeration value. We're only interested in the values of the counters.
-// Ignore the shape, average, and standard deviation of the histograms because
-// they are meaningless.
-//
-// We use two histograms. In the first histogram we tally whether the user has
-// seen an FTP server of a given type during that session. In the second
-// histogram we tally the number of transactions with FTP server of a given type
-// the user has made during that session.
-void UpdateFtpServerTypeHistograms(FtpServerType type) {
- static bool had_server_type[NUM_OF_SERVER_TYPES];
- if (type >= 0 && type < NUM_OF_SERVER_TYPES) {
- if (!had_server_type[type]) {
- had_server_type[type] = true;
- UMA_HISTOGRAM_ENUMERATION("Net.HadFtpServerType2",
- type, NUM_OF_SERVER_TYPES);
- }
- }
- UMA_HISTOGRAM_ENUMERATION("Net.FtpServerTypeCount2",
- type, NUM_OF_SERVER_TYPES);
-}
-
-} // namespace net
« no previous file with comments | « net/ftp/ftp_server_type_histograms.h ('k') | net/ftp/ftp_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698