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

Unified Diff: chrome/browser/ui/views/indexed_db_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/indexed_db_info_view.cc
diff --git a/chrome/browser/ui/views/indexed_db_info_view.cc b/chrome/browser/ui/views/indexed_db_info_view.cc
index 34fd9eb63c6f22de37c9996af9a87cc2b0b377e7..d033dca6b7f22388e53df9129b4b817fcc88a149 100644
--- a/chrome/browser/ui/views/indexed_db_info_view.cc
+++ b/chrome/browser/ui/views/indexed_db_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"
@@ -34,10 +35,7 @@ IndexedDBInfoView::~IndexedDBInfoView() {
void IndexedDBInfoView::SetIndexedDBInfo(
const BrowsingDataIndexedDBHelper::IndexedDBInfo& indexed_db_info) {
origin_value_field_->SetText(UTF8ToWide(indexed_db_info.origin));
- size_value_field_->SetText(
- FormatBytes(indexed_db_info.size,
- GetByteDisplayUnits(indexed_db_info.size),
- true));
+ size_value_field_->SetText(ui::FormatBytes(indexed_db_info.size));
last_modified_value_field_->SetText(
base::TimeFormatFriendlyDateAndTime(indexed_db_info.last_modified));
EnableIndexedDBDisplay(true);

Powered by Google App Engine
This is Rietveld 408576698