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

Unified Diff: chrome/browser/ui/views/local_storage_info_view.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/views/local_storage_info_view.cc
diff --git a/chrome/browser/ui/views/local_storage_info_view.cc b/chrome/browser/ui/views/local_storage_info_view.cc
index 894d7c91013f173e3e9e40c9327a6429cdd59031..8bbc5804566c454eb62379ce649fe972d7640542 100644
--- a/chrome/browser/ui/views/local_storage_info_view.cc
+++ b/chrome/browser/ui/views/local_storage_info_view.cc
@@ -10,6 +10,7 @@
#include "base/utf_string_conversions.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/text/bytes_formatting.h"
#include "ui/gfx/color_utils.h"
#include "views/controls/label.h"
#include "views/controls/textfield/textfield.h"
@@ -35,10 +36,7 @@ void LocalStorageInfoView::SetLocalStorageInfo(
const BrowsingDataLocalStorageHelper::LocalStorageInfo&
local_storage_info) {
origin_value_field_->SetText(UTF8ToWide(local_storage_info.origin));
- size_value_field_->SetText(
- FormatBytes(local_storage_info.size,
- GetByteDisplayUnits(local_storage_info.size),
- true));
+ size_value_field_->SetText(ui::FormatBytes(local_storage_info.size));
last_modified_value_field_->SetText(
base::TimeFormatFriendlyDateAndTime(local_storage_info.last_modified));
EnableLocalStorageDisplay(true);

Powered by Google App Engine
This is Rietveld 408576698