| Index: chrome/browser/diagnostics/recon_diagnostics.cc
|
| diff --git a/chrome/browser/diagnostics/recon_diagnostics.cc b/chrome/browser/diagnostics/recon_diagnostics.cc
|
| index 390d2aa3d03688d5ac260257e61678861332fa50..77bc6fbbf2b1525e495c243d0afa733253d09b46 100644
|
| --- a/chrome/browser/diagnostics/recon_diagnostics.cc
|
| +++ b/chrome/browser/diagnostics/recon_diagnostics.cc
|
| @@ -20,6 +20,7 @@
|
| #include "chrome/common/chrome_paths.h"
|
| #include "chrome/common/chrome_version_info.h"
|
| #include "content/common/json_value_serializer.h"
|
| +#include "ui/base/text/bytes_formatting.h"
|
|
|
| #if defined(OS_WIN)
|
| #include "base/win/windows_version.h"
|
| @@ -251,8 +252,7 @@ class PathTest : public DiagnosticTest {
|
| dir_or_file.LossyDisplayName());
|
| return true;
|
| }
|
| - DataUnits units = GetByteDisplayUnits(dir_or_file_size);
|
| - string16 printable_size = FormatBytes(dir_or_file_size, units, true);
|
| + string16 printable_size = ui::FormatBytes(dir_or_file_size);
|
|
|
| if (path_info_.max_size > 0) {
|
| if (dir_or_file_size > path_info_.max_size) {
|
| @@ -299,8 +299,7 @@ class DiskSpaceTest : public DiagnosticTest {
|
| RecordFailure(ASCIIToUTF16("Unable to query free space"));
|
| return true;
|
| }
|
| - DataUnits units = GetByteDisplayUnits(disk_space);
|
| - string16 printable_size = FormatBytes(disk_space, units, true);
|
| + string16 printable_size = ui::FormatBytes(disk_space);
|
| if (disk_space < 80 * kOneMeg) {
|
| RecordFailure(ASCIIToUTF16("Low disk space : ") + printable_size);
|
| return true;
|
|
|