diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-09 20:25:14 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-09 20:25:14 +0000 |
commit | 475ad1925e8a3af6ffcc32d874942550c434dc1a (patch) | |
tree | dd9a15548f826d41dfa9cc6e3addb8bc65a316c1 /webkit/blob | |
parent | 0fcbdb6de83d31cfba435491d9494556137926f7 (diff) | |
download | chromium_src-475ad1925e8a3af6ffcc32d874942550c434dc1a.zip chromium_src-475ad1925e8a3af6ffcc32d874942550c434dc1a.tar.gz chromium_src-475ad1925e8a3af6ffcc32d874942550c434dc1a.tar.bz2 |
Reland issue 3270016: Remove the workaround that is not needed after the fix for Time::FromDoubleT is
landed.
BUG=none
TEST=none
TBR=darin
Review URL: http://codereview.chromium.org/3345016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58990 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/blob')
-rw-r--r-- | webkit/blob/blob_data.cc | 12 |
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) { |