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

Unified Diff: net/disk_cache/eviction.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
« no previous file with comments | « net/disk_cache/entry_impl.cc ('k') | net/disk_cache/rankings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/eviction.cc
===================================================================
--- net/disk_cache/eviction.cc (revision 10269)
+++ net/disk_cache/eviction.cc (working copy)
@@ -80,7 +80,7 @@
}
}
- UMA_HISTOGRAM_TIMES(L"DiskCache.TotalTrimTime", Time::Now() - start);
+ UMA_HISTOGRAM_TIMES("DiskCache.TotalTrimTime", Time::Now() - start);
Trace("*** Trim Cache end ***");
return;
}
@@ -107,8 +107,8 @@
static bool first_time = true;
if (first_time) {
first_time = false;
- std::wstring name(StringPrintf(L"DiskCache.TrimAge_%d",
- header_->experiment));
+ std::string name(StringPrintf("DiskCache.TrimAge_%d",
+ header_->experiment));
static Histogram counter(name.c_str(), 1, 10000, 50);
counter.SetFlags(kUmaTargetedHistogramFlag);
counter.Add((Time::Now() - entry->GetLastUsed()).InHours());
« no previous file with comments | « net/disk_cache/entry_impl.cc ('k') | net/disk_cache/rankings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698