From 68374228393deb43ae8bbc05b0d7770c1480b619 Mon Sep 17 00:00:00 2001 From: "jianli@chromium.org" Date: Tue, 31 Aug 2010 23:05:58 +0000 Subject: 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 --- webkit/blob/blob_data.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'webkit/blob') 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(item.offset), static_cast(item.length), - DoubleTToTime(item.expectedModificationTime)); + base::Time::FromDoubleT(item.expectedModificationTime)); break; case WebBlobData::Item::TypeBlob: if (item.length) { -- cgit v1.1