summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-13 17:49:37 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-13 17:49:37 +0000
commit6f1b5ffb6dfa0005ec6ac01c20f29a55a89c88a3 (patch)
tree54b338efbec9aaaa7ccbb20b7a2aa5b6445a8e7d
parent2086a3da7b13a837035f0df29b12fbb5c49fc120 (diff)
downloadchromium_src-6f1b5ffb6dfa0005ec6ac01c20f29a55a89c88a3.zip
chromium_src-6f1b5ffb6dfa0005ec6ac01c20f29a55a89c88a3.tar.gz
chromium_src-6f1b5ffb6dfa0005ec6ac01c20f29a55a89c88a3.tar.bz2
FTP: Clean up the server type histogram to use less space.
This includes a rename: Net.HadFtpServerType -> Net.HadFtpServerType2 Net.FtpServerTypeCount -> Net.FtpServerTypeCount2 BUG=none Review URL: https://chromiumcodereview.appspot.com/11360211 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167414 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/ftp/ftp_server_type_histograms.cc4
-rw-r--r--net/ftp/ftp_server_type_histograms.h16
2 files changed, 7 insertions, 13 deletions
diff --git a/net/ftp/ftp_server_type_histograms.cc b/net/ftp/ftp_server_type_histograms.cc
index 591545b..84592ed 100644
--- a/net/ftp/ftp_server_type_histograms.cc
+++ b/net/ftp/ftp_server_type_histograms.cc
@@ -22,11 +22,11 @@ void UpdateFtpServerTypeHistograms(FtpServerType type) {
if (type >= 0 && type < NUM_OF_SERVER_TYPES) {
if (!had_server_type[type]) {
had_server_type[type] = true;
- UMA_HISTOGRAM_ENUMERATION("Net.HadFtpServerType",
+ UMA_HISTOGRAM_ENUMERATION("Net.HadFtpServerType2",
type, NUM_OF_SERVER_TYPES);
}
}
- UMA_HISTOGRAM_ENUMERATION("Net.FtpServerTypeCount",
+ UMA_HISTOGRAM_ENUMERATION("Net.FtpServerTypeCount2",
type, NUM_OF_SERVER_TYPES);
}
diff --git a/net/ftp/ftp_server_type_histograms.h b/net/ftp/ftp_server_type_histograms.h
index 9a99588..5ae862c 100644
--- a/net/ftp/ftp_server_type_histograms.h
+++ b/net/ftp/ftp_server_type_histograms.h
@@ -16,17 +16,11 @@ enum FtpServerType {
// connecting to isn't an FTP server), or a broken server.
SERVER_UNKNOWN = 0,
- // Types 1-8 are RESERVED (were earlier used for listings recognized by
- // Mozilla's ParseFTPList code).
-
- SERVER_LS = 9, // Server using /bin/ls -l listing style.
- SERVER_WINDOWS = 10, // Server using Windows listing style.
- SERVER_VMS = 11, // Server using VMS listing style.
- SERVER_NETWARE = 12, // Server using Netware listing style.
-
- // Types 13-14 are RESERVED (were earlier used for MLSD listings).
-
- SERVER_OS2 = 15, // Server using OS/2 listing style.
+ SERVER_LS = 1, // Server using /bin/ls -l listing style.
+ SERVER_WINDOWS = 2, // Server using Windows listing style.
+ SERVER_VMS = 3, // Server using VMS listing style.
+ SERVER_NETWARE = 4, // Server using Netware listing style.
+ SERVER_OS2 = 5, // Server using OS/2 listing style.
NUM_OF_SERVER_TYPES
};