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); |