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

Unified Diff: chrome/browser/ui/gtk/gtk_chrome_cookie_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/gtk/gtk_chrome_cookie_view.cc
diff --git a/chrome/browser/ui/gtk/gtk_chrome_cookie_view.cc b/chrome/browser/ui/gtk/gtk_chrome_cookie_view.cc
index a7bac5783c4b9504997d810636875c20b9cab9e9..e1844babf0620a0c6a1a3af89e61eb4f4592501e 100644
--- a/chrome/browser/ui/gtk/gtk_chrome_cookie_view.cc
+++ b/chrome/browser/ui/gtk/gtk_chrome_cookie_view.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/ui/gtk/gtk_util.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/text/bytes_formatting.h"
namespace {
@@ -540,10 +541,7 @@ void gtk_chrome_cookie_view_display_database(
gtk_entry_set_text(GTK_ENTRY(self->database_description_entry_),
database_info.description.c_str());
gtk_entry_set_text(GTK_ENTRY(self->database_size_entry_),
- UTF16ToUTF8(FormatBytes(
- database_info.size,
- GetByteDisplayUnits(database_info.size),
- true)).c_str());
+ UTF16ToUTF8(ui::FormatBytes(database_info.size)).c_str());
gtk_entry_set_text(GTK_ENTRY(self->database_last_modified_entry_),
UTF16ToUTF8(base::TimeFormatFriendlyDateAndTime(
database_info.last_modified)).c_str());
@@ -560,10 +558,8 @@ void gtk_chrome_cookie_view_display_local_storage(
gtk_entry_set_text(GTK_ENTRY(self->local_storage_origin_entry_),
local_storage_info.origin.c_str());
gtk_entry_set_text(GTK_ENTRY(self->local_storage_size_entry_),
- UTF16ToUTF8(FormatBytes(
- local_storage_info.size,
- GetByteDisplayUnits(local_storage_info.size),
- true)).c_str());
+ UTF16ToUTF8(ui::FormatBytes(
+ local_storage_info.size)).c_str());
gtk_entry_set_text(GTK_ENTRY(self->local_storage_last_modified_entry_),
UTF16ToUTF8(base::TimeFormatFriendlyDateAndTime(
local_storage_info.last_modified)).c_str());
@@ -579,10 +575,7 @@ void gtk_chrome_cookie_view_display_app_cache(
gtk_entry_set_text(GTK_ENTRY(self->appcache_manifest_entry_),
info.manifest_url.spec().c_str());
gtk_entry_set_text(GTK_ENTRY(self->appcache_size_entry_),
- UTF16ToUTF8(FormatBytes(
- info.size,
- GetByteDisplayUnits(info.size),
- true)).c_str());
+ UTF16ToUTF8(ui::FormatBytes(info.size)).c_str());
gtk_entry_set_text(GTK_ENTRY(self->appcache_created_entry_),
UTF16ToUTF8(base::TimeFormatFriendlyDateAndTime(
info.creation_time)).c_str());
@@ -601,10 +594,8 @@ void gtk_chrome_cookie_view_display_indexed_db(
gtk_entry_set_text(GTK_ENTRY(self->indexed_db_origin_entry_),
indexed_db_info.origin.c_str());
gtk_entry_set_text(GTK_ENTRY(self->indexed_db_size_entry_),
- UTF16ToUTF8(FormatBytes(
- indexed_db_info.size,
- GetByteDisplayUnits(indexed_db_info.size),
- true)).c_str());
+ UTF16ToUTF8(ui::FormatBytes(
+ indexed_db_info.size)).c_str());
gtk_entry_set_text(GTK_ENTRY(self->indexed_db_last_modified_entry_),
UTF16ToUTF8(base::TimeFormatFriendlyDateAndTime(
indexed_db_info.last_modified)).c_str());
@@ -642,10 +633,7 @@ void gtk_chrome_cookie_view_display_database_accessed(
gtk_entry_set_text(GTK_ENTRY(self->database_accessed_description_entry_),
UTF16ToUTF8(display_name).c_str());
gtk_entry_set_text(GTK_ENTRY(self->database_accessed_size_entry_),
- UTF16ToUTF8(FormatBytes(
- estimated_size,
- GetByteDisplayUnits(estimated_size),
- true)).c_str());
+ UTF16ToUTF8(ui::FormatBytes(estimated_size)).c_str());
SetDatabaseAccessedSensitivity(self, TRUE);
}

Powered by Google App Engine
This is Rietveld 408576698