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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.cc

Issue 28046: Use string for Histogram names since these are all ASCII anyway wide-characte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
Index: chrome/browser/renderer_host/resource_message_filter.cc
===================================================================
--- chrome/browser/renderer_host/resource_message_filter.cc (revision 10269)
+++ chrome/browser/renderer_host/resource_message_filter.cc (working copy)
@@ -426,7 +426,7 @@
static HDC hdcs[kFontCacheSize] = {0};
static size_t font_index = 0;
- UMA_HISTOGRAM_COUNTS_100(L"Memory.CachedFontAndDC",
+ UMA_HISTOGRAM_COUNTS_100("Memory.CachedFontAndDC",
fonts[kFontCacheSize-1] ? kFontCacheSize : static_cast<int>(font_index));
HDC hdc = GetDC(NULL);
@@ -591,15 +591,15 @@
void ResourceMessageFilter::OnResourceTypeStats(
const CacheManager::ResourceTypeStats& stats) {
- HISTOGRAM_COUNTS(L"WebCoreCache.ImagesSizeKB",
+ HISTOGRAM_COUNTS("WebCoreCache.ImagesSizeKB",
static_cast<int>(stats.images.size / 1024));
- HISTOGRAM_COUNTS(L"WebCoreCache.CSSStylesheetsSizeKB",
+ HISTOGRAM_COUNTS("WebCoreCache.CSSStylesheetsSizeKB",
static_cast<int>(stats.css_stylesheets.size / 1024));
- HISTOGRAM_COUNTS(L"WebCoreCache.ScriptsSizeKB",
+ HISTOGRAM_COUNTS("WebCoreCache.ScriptsSizeKB",
static_cast<int>(stats.scripts.size / 1024));
- HISTOGRAM_COUNTS(L"WebCoreCache.XSLStylesheetsSizeKB",
+ HISTOGRAM_COUNTS("WebCoreCache.XSLStylesheetsSizeKB",
static_cast<int>(stats.xsl_stylesheets.size / 1024));
- HISTOGRAM_COUNTS(L"WebCoreCache.FontsSizeKB",
+ HISTOGRAM_COUNTS("WebCoreCache.FontsSizeKB",
static_cast<int>(stats.fonts.size / 1024));
}
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.cc ('k') | chrome/browser/safe_browsing/protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698