Index: chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc |
diff --git a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc |
index 61ef4769ee9ff8a8d3ea9137a51194b73d432b04..dabfc2ce8166a4ec219fd522888b2f4dafe94352 100644 |
--- a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc |
+++ b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc |
@@ -20,6 +20,7 @@ |
#include "grit/locale_settings.h" |
#include "ui/base/l10n/l10n_util.h" |
#include "ui/base/resource/resource_bundle.h" |
+#include "ui/base/text/bytes_formatting.h" |
namespace imageburner { |
@@ -596,8 +597,7 @@ void WebUIHandler::GetProgressTimeLeftText(int message_id, |
} |
void WebUIHandler::GetDataSizeText(int64 size, string16* size_text) { |
- DataUnits size_units = GetByteDisplayUnits(size); |
- *size_text = FormatBytes(size, size_units, true); |
+ *size_text = ui::FormatBytes(size); |
base::i18n::AdjustStringForLocaleDirection(size_text); |
} |