diff options
author | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 19:08:23 +0000 |
---|---|---|
committer | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 19:08:23 +0000 |
commit | 553dba6dd707ee02e609910462d2b7977f284af2 (patch) | |
tree | c38ea1fbfb3a1d387134541faa9bdfc0720234cf /chrome/browser/browser_shutdown.cc | |
parent | 0e7fe5cab991f8751ecaa6cd43ff7e51d9647dde (diff) | |
download | chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.zip chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.tar.gz chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.tar.bz2 |
Use string for Histogram names since these are all ASCII anyway.
Wide-character literals cause problems between platforms.
Review URL: http://codereview.chromium.org/28046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_shutdown.cc')
-rw-r--r-- | chrome/browser/browser_shutdown.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/chrome/browser/browser_shutdown.cc b/chrome/browser/browser_shutdown.cc index 933a1ea..40e470f 100644 --- a/chrome/browser/browser_shutdown.cc +++ b/chrome/browser/browser_shutdown.cc @@ -190,19 +190,19 @@ void ReadLastShutdownInfo() { prefs->SetInteger(prefs::kShutdownNumProcessesSlow, 0); if (type > NOT_VALID && shutdown_ms > 0 && num_procs > 0) { - const wchar_t *time_fmt = L"Shutdown.%ls.time"; - const wchar_t *time_per_fmt = L"Shutdown.%ls.time_per_process"; - std::wstring time; - std::wstring time_per; + const char *time_fmt = "Shutdown.%s.time"; + const char *time_per_fmt = "Shutdown.%s.time_per_process"; + std::string time; + std::string time_per; if (type == WINDOW_CLOSE) { - time = StringPrintf(time_fmt, L"window_close"); - time_per = StringPrintf(time_per_fmt, L"window_close"); + time = StringPrintf(time_fmt, "window_close"); + time_per = StringPrintf(time_per_fmt, "window_close"); } else if (type == BROWSER_EXIT) { - time = StringPrintf(time_fmt, L"browser_exit"); - time_per = StringPrintf(time_per_fmt, L"browser_exit"); + time = StringPrintf(time_fmt, "browser_exit"); + time_per = StringPrintf(time_per_fmt, "browser_exit"); } else if (type == END_SESSION) { - time = StringPrintf(time_fmt, L"end_session"); - time_per = StringPrintf(time_per_fmt, L"end_session"); + time = StringPrintf(time_fmt, "end_session"); + time_per = StringPrintf(time_per_fmt, "end_session"); } else { NOTREACHED(); } @@ -212,8 +212,8 @@ void ReadLastShutdownInfo() { TimeDelta::FromMilliseconds(shutdown_ms)); UMA_HISTOGRAM_TIMES(time_per.c_str(), TimeDelta::FromMilliseconds(shutdown_ms / num_procs)); - UMA_HISTOGRAM_COUNTS_100(L"Shutdown.renderers.total", num_procs); - UMA_HISTOGRAM_COUNTS_100(L"Shutdown.renderers.slow", num_procs_slow); + UMA_HISTOGRAM_COUNTS_100("Shutdown.renderers.total", num_procs); + UMA_HISTOGRAM_COUNTS_100("Shutdown.renderers.slow", num_procs_slow); } } } |