summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download_tab_view.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-19 22:35:29 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-19 22:35:29 +0000
commit5cca3a55b3f1c25c5b3a19c3b42227aae34e4abf (patch)
tree01cd3db90399f7c24d3aea3593fd2d5feb35f106 /chrome/browser/download_tab_view.cc
parentaac13f594195df51eb1e4e35ea2863659cb4de54 (diff)
downloadchromium_src-5cca3a55b3f1c25c5b3a19c3b42227aae34e4abf.zip
chromium_src-5cca3a55b3f1c25c5b3a19c3b42227aae34e4abf.tar.gz
chromium_src-5cca3a55b3f1c25c5b3a19c3b42227aae34e4abf.tar.bz2
Move time formatters that only use ICU into base/time.*
This allows us to use the time formatters in, e.g., net or webkit. Remove CookieExpires since it's not used. BUG=1164516 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download_tab_view.cc')
-rw-r--r--chrome/browser/download_tab_view.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/download_tab_view.cc b/chrome/browser/download_tab_view.cc
index d675833..f2424a0 100644
--- a/chrome/browser/download_tab_view.cc
+++ b/chrome/browser/download_tab_view.cc
@@ -37,6 +37,7 @@
#include "base/file_util.h"
#include "base/string_util.h"
#include "base/task.h"
+#include "base/time_format.h"
#include "base/timer.h"
#include "chrome/app/theme/theme_resources.h"
#include "chrome/browser/browser_process.h"
@@ -252,13 +253,13 @@ void DownloadItemTabView::LayoutDate() {
CSize since_size;
- since_->SetText(TimeFormat::FriendlyDay(model_->start_time(), NULL));
+ since_->SetText(TimeFormat::RelativeDate(model_->start_time(), NULL));
since_->GetPreferredSize(&since_size);
since_->SetBounds(kLeftMargin, kIconOffset, kDateSize, since_size.cy);
since_->SetVisible(true);
CSize date_size;
- date_->SetText(TimeFormat::ShortDate(model_->start_time()));
+ date_->SetText(base::TimeFormatShortDate(model_->start_time()));
date_->GetPreferredSize(&date_size);
date_->SetBounds(kLeftMargin, since_size.cy + kVerticalPadding + kIconOffset,
kDateSize, date_size.cy);