diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-19 23:11:28 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-19 23:11:28 +0000 |
commit | 7b83a107f3feaa0bd220b0ac6f983d7a3b82c44e (patch) | |
tree | 3f64360ee3d06327326187ace7065957c264efe2 /chrome/browser/diagnostics | |
parent | c48d1ef5985b7084bdbca953db85fae43ca564c5 (diff) | |
download | chromium_src-7b83a107f3feaa0bd220b0ac6f983d7a3b82c44e.zip chromium_src-7b83a107f3feaa0bd220b0ac6f983d7a3b82c44e.tar.gz chromium_src-7b83a107f3feaa0bd220b0ac6f983d7a3b82c44e.tar.bz2 |
Convert FormatBytes to string16.
I considered ASCII, but it's producing what is intended to be a
human-readable string. For example, in theory the "bytes/s" annotation
could be localized into a language where the "b" is non-ASCII.
Review URL: http://codereview.chromium.org/3107021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/diagnostics')
-rw-r--r-- | chrome/browser/diagnostics/recon_diagnostics.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/diagnostics/recon_diagnostics.cc b/chrome/browser/diagnostics/recon_diagnostics.cc index eb76c2b..bbe23f7 100644 --- a/chrome/browser/diagnostics/recon_diagnostics.cc +++ b/chrome/browser/diagnostics/recon_diagnostics.cc @@ -203,8 +203,7 @@ class PathTest : public DiagnosticTest { return true; } DataUnits units = GetByteDisplayUnits(dir_or_file_size); - string16 printable_size = - WideToUTF16(FormatBytes(dir_or_file_size, units, true)); + string16 printable_size = FormatBytes(dir_or_file_size, units, true); if (path_info_.max_size > 0) { if (dir_or_file_size > path_info_.max_size) { @@ -248,8 +247,7 @@ class DiskSpaceTest : public DiagnosticTest { return true; } DataUnits units = GetByteDisplayUnits(disk_space); - string16 printable_size = - WideToUTF16(FormatBytes(disk_space, units, true)); + string16 printable_size = FormatBytes(disk_space, units, true); if (disk_space < 80 * kOneMeg) { RecordFailure(ASCIIToUTF16("Low disk space : ") + printable_size); return true; |