summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornshkrob@chromium.org <nshkrob@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 17:08:00 +0000
committernshkrob@chromium.org <nshkrob@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 17:08:00 +0000
commita09603c94f6f4a152d9ac8cd4ad9d9a36ade8c30 (patch)
treec1eac1977202ed5d4f269fa462ab20890e012c1d
parent39f7f17f35ec7f78a2b5b413d4b0b02fc216da61 (diff)
downloadchromium_src-a09603c94f6f4a152d9ac8cd4ad9d9a36ade8c30.zip
chromium_src-a09603c94f6f4a152d9ac8cd4ad9d9a36ade8c30.tar.gz
chromium_src-a09603c94f6f4a152d9ac8cd4ad9d9a36ade8c30.tar.bz2
Add and rename histograms for the new DB files.
The Thumbnails file is renamed to Favicons. The new "Top Sites" DB file is added. TEST=about:histograms BUG=none Review URL: http://codereview.chromium.org/3113002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56374 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/profile_impl.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/profile_impl.cc b/chrome/browser/profile_impl.cc
index 18b3a02..bc11cc5 100644
--- a/chrome/browser/profile_impl.cc
+++ b/chrome/browser/profile_impl.cc
@@ -223,9 +223,13 @@ void ProfileSizeTask::Run() {
size_MB = static_cast<int>(size / (1024 * 1024));
UMA_HISTOGRAM_COUNTS_10000("Profile.BookmarksSize", size_MB);
- size = file_util::ComputeFilesSize(path_, FILE_PATH_LITERAL("Thumbnails"));
+ size = file_util::ComputeFilesSize(path_, FILE_PATH_LITERAL("Favicons"));
size_MB = static_cast<int>(size / (1024 * 1024));
- UMA_HISTOGRAM_COUNTS_10000("Profile.ThumbnailsSize", size_MB);
+ UMA_HISTOGRAM_COUNTS_10000("Profile.FaviconsSize", size_MB);
+
+ size = file_util::ComputeFilesSize(path_, FILE_PATH_LITERAL("Top Sites"));
+ size_MB = static_cast<int>(size / (1024 * 1024));
+ UMA_HISTOGRAM_COUNTS_10000("Profile.TopSitesSize", size_MB);
size = file_util::ComputeFilesSize(path_, FILE_PATH_LITERAL("Visited Links"));
size_MB = static_cast<int>(size / (1024 * 1024));