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

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: typo 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..6c152583915ee1a07d734832eb0fae2ed42fc8fd 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,9 +541,9 @@ 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(
+ UTF16ToUTF8(ui::FormatBytes(
database_info.size,
- GetByteDisplayUnits(database_info.size),
+ ui::DATA_UNITS_NATURAL,
true)).c_str());
gtk_entry_set_text(GTK_ENTRY(self->database_last_modified_entry_),
UTF16ToUTF8(base::TimeFormatFriendlyDateAndTime(
@@ -560,9 +561,9 @@ 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(
+ UTF16ToUTF8(ui::FormatBytes(
local_storage_info.size,
- GetByteDisplayUnits(local_storage_info.size),
+ ui::DATA_UNITS_NATURAL,
true)).c_str());
gtk_entry_set_text(GTK_ENTRY(self->local_storage_last_modified_entry_),
UTF16ToUTF8(base::TimeFormatFriendlyDateAndTime(
@@ -579,9 +580,9 @@ 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(
+ UTF16ToUTF8(ui::FormatBytes(
info.size,
- GetByteDisplayUnits(info.size),
+ ui::DATA_UNITS_NATURAL,
true)).c_str());
gtk_entry_set_text(GTK_ENTRY(self->appcache_created_entry_),
UTF16ToUTF8(base::TimeFormatFriendlyDateAndTime(
@@ -601,9 +602,9 @@ 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(
+ UTF16ToUTF8(ui::FormatBytes(
indexed_db_info.size,
- GetByteDisplayUnits(indexed_db_info.size),
+ ui::DATA_UNITS_NATURAL,
true)).c_str());
gtk_entry_set_text(GTK_ENTRY(self->indexed_db_last_modified_entry_),
UTF16ToUTF8(base::TimeFormatFriendlyDateAndTime(
@@ -642,9 +643,9 @@ 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(
+ UTF16ToUTF8(ui::FormatBytes(
estimated_size,
- GetByteDisplayUnits(estimated_size),
+ ui::DATA_UNITS_NATURAL,
true)).c_str());
SetDatabaseAccessedSensitivity(self, TRUE);
}

Powered by Google App Engine
This is Rietveld 408576698