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

Unified Diff: chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc

Issue 7189076: Localize strings, speeds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright dates Created 9 years, 6 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698