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

Unified Diff: chrome/browser/sessions/session_backend.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 | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/spellchecker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_backend.cc
===================================================================
--- chrome/browser/sessions/session_backend.cc (revision 10269)
+++ chrome/browser/sessions/session_backend.cc (working copy)
@@ -97,10 +97,10 @@
if (!errored_)
read_commands->swap(*commands);
if (type == BaseSessionService::TAB_RESTORE) {
- UMA_HISTOGRAM_TIMES(L"TabRestore.read_session_file_time",
+ UMA_HISTOGRAM_TIMES("TabRestore.read_session_file_time",
TimeTicks::Now() - start_time);
} else {
- UMA_HISTOGRAM_TIMES(L"SessionRestore.read_session_file_time",
+ UMA_HISTOGRAM_TIMES("SessionRestore.read_session_file_time",
TimeTicks::Now() - start_time);
}
return !errored_;
@@ -259,10 +259,10 @@
int64 file_size;
if (file_util::GetFileSize(current_session_path, &file_size)) {
if (type_ == BaseSessionService::TAB_RESTORE) {
- UMA_HISTOGRAM_COUNTS(L"TabRestore.last_session_file_size",
+ UMA_HISTOGRAM_COUNTS("TabRestore.last_session_file_size",
static_cast<int>(file_size / 1024));
} else {
- UMA_HISTOGRAM_COUNTS(L"SessionRestore.last_session_file_size",
+ UMA_HISTOGRAM_COUNTS("SessionRestore.last_session_file_size",
static_cast<int>(file_size / 1024));
}
}
@@ -285,9 +285,9 @@
const size_type content_size = static_cast<size_type>((*i)->size());
const size_type total_size = content_size + sizeof(id_type);
if (type_ == BaseSessionService::TAB_RESTORE)
- UMA_HISTOGRAM_COUNTS(L"TabRestore.command_size", total_size);
+ UMA_HISTOGRAM_COUNTS("TabRestore.command_size", total_size);
else
- UMA_HISTOGRAM_COUNTS(L"SessionRestore.command_size", total_size);
+ UMA_HISTOGRAM_COUNTS("SessionRestore.command_size", total_size);
wrote = file->Write(reinterpret_cast<const char*>(&total_size),
sizeof(total_size), NULL);
if (wrote != sizeof(total_size)) {
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/spellchecker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698