From 6f1b5ffb6dfa0005ec6ac01c20f29a55a89c88a3 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Tue, 13 Nov 2012 17:49:37 +0000 Subject: 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 --- net/ftp/ftp_server_type_histograms.cc | 4 ++-- net/ftp/ftp_server_type_histograms.h | 16 +++++----------- 2 files changed, 7 insertions(+), 13 deletions(-) (limited to 'net') 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 }; -- cgit v1.1