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

Unified Diff: chrome/browser/ui/views/database_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/database_info_view.cc
diff --git a/chrome/browser/ui/views/database_info_view.cc b/chrome/browser/ui/views/database_info_view.cc
index 0f0d6e48fe2fa460a1a5b58d93dbcc104e5e4723..8f1e7c21d9928bbcb0cdf25b990dfd4d73f77a0a 100644
--- a/chrome/browser/ui/views/database_info_view.cc
+++ b/chrome/browser/ui/views/database_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"
@@ -39,10 +40,7 @@ void DatabaseInfoView::SetDatabaseInfo(
l10n_util::GetStringUTF16(IDS_COOKIES_WEB_DATABASE_UNNAMED_NAME)) :
UTF8ToWide(database_info.database_name));
description_value_field_->SetText(UTF8ToWide(database_info.description));
- size_value_field_->SetText(
- FormatBytes(database_info.size,
- GetByteDisplayUnits(database_info.size),
- true));
+ size_value_field_->SetText(ui::FormatBytes(database_info.size));
last_modified_value_field_->SetText(
base::TimeFormatFriendlyDateAndTime(database_info.last_modified));
EnableDatabaseDisplay(true);

Powered by Google App Engine
This is Rietveld 408576698