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

Unified Diff: chrome/browser/ui/views/database_open_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_open_info_view.cc
diff --git a/chrome/browser/ui/views/database_open_info_view.cc b/chrome/browser/ui/views/database_open_info_view.cc
index 7bdbbef6920faa1e2267618829e3b527598e9390..4d23a95d6d9354e572ecd30ecd8c410024d72a30 100644
--- a/chrome/browser/ui/views/database_open_info_view.cc
+++ b/chrome/browser/ui/views/database_open_info_view.cc
@@ -7,6 +7,7 @@
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "grit/generated_resources.h"
+#include "ui/base/text/bytes_formatting.h"
namespace {
const int kInfoLabelIds[] = {
@@ -29,9 +30,7 @@ void DatabaseOpenInfoView::SetFields(const std::string& host,
const string16& display_name,
unsigned long estimated_size) {
string16 url = UTF8ToUTF16(host);
- string16 size = FormatBytes(estimated_size,
- GetByteDisplayUnits(estimated_size),
- true);
+ string16 size = ui::FormatBytes(estimated_size);
int row = 0;
SetValue(row++, url);
SetValue(row++, database_name);

Powered by Google App Engine
This is Rietveld 408576698