summaryrefslogtreecommitdiffstats
path: root/webkit/blob
diff options
context:
space:
mode:
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 23:05:58 +0000
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 23:05:58 +0000
commit68374228393deb43ae8bbc05b0d7770c1480b619 (patch)
tree93e05afbe9213daa3d144bcb045d8b80e9bb17ed /webkit/blob
parentbe41e34def0230749072cdbbdf109883c0a5d8f5 (diff)
downloadchromium_src-68374228393deb43ae8bbc05b0d7770c1480b619.zip
chromium_src-68374228393deb43ae8bbc05b0d7770c1480b619.tar.gz
chromium_src-68374228393deb43ae8bbc05b0d7770c1480b619.tar.bz2
Remove the workaround that is not needed after the fix for Time::FromDoubleT is
landed. BUG=none TEST=none Review URL: http://codereview.chromium.org/3270016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58093 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/blob')
-rw-r--r--webkit/blob/blob_data.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/webkit/blob/blob_data.cc b/webkit/blob/blob_data.cc
index 4afcf8a..838014b 100644
--- a/webkit/blob/blob_data.cc
+++ b/webkit/blob/blob_data.cc
@@ -15,16 +15,6 @@ using WebKit::WebBlobData;
using WebKit::WebData;
using WebKit::WebString;
-namespace {
-
-// Time::FromDoubleT() does not return empty Time object when dt is 0.
-// We have to work around this problem here.
-base::Time DoubleTToTime(double dt) {
- return dt ? base::Time::FromDoubleT(dt) : base::Time();
-}
-
-}
-
namespace webkit_blob {
BlobData::BlobData(const WebBlobData& data) {
@@ -44,7 +34,7 @@ BlobData::BlobData(const WebBlobData& data) {
webkit_glue::WebStringToFilePath(item.filePath),
static_cast<uint64>(item.offset),
static_cast<uint64>(item.length),
- DoubleTToTime(item.expectedModificationTime));
+ base::Time::FromDoubleT(item.expectedModificationTime));
break;
case WebBlobData::Item::TypeBlob:
if (item.length) {