summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 23:56:38 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 23:56:38 +0000
commit22c0d8b2217c2ac4e11a42b1c1df0197606dcaa4 (patch)
treea04ff1fc6b9de0c22cfcacccff53410deb7bd9b4
parent615b40c6a98d3abf076e6157ee8acf8857248618 (diff)
downloadchromium_src-22c0d8b2217c2ac4e11a42b1c1df0197606dcaa4.zip
chromium_src-22c0d8b2217c2ac4e11a42b1c1df0197606dcaa4.tar.gz
chromium_src-22c0d8b2217c2ac4e11a42b1c1df0197606dcaa4.tar.bz2
Revert 58091 - experiment to try and fix 'Cookies' test on Linux.
Fix Time::FromDoubleT so that it will return null time when 0 is passed. BUG=none TEST=none Review URL: http://codereview.chromium.org/3175044 TBR=jianli@chromium.org Review URL: http://codereview.chromium.org/3262012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58103 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/time.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/base/time.cc b/base/time.cc
index cebc693..383f939 100644
--- a/base/time.cc
+++ b/base/time.cc
@@ -66,8 +66,6 @@ time_t Time::ToTimeT() const {
// static
Time Time::FromDoubleT(double dt) {
- if (dt == 0)
- return Time(); // Preserve 0 so we can tell it doesn't exist.
return Time(static_cast<int64>((dt *
static_cast<double>(kMicrosecondsPerSecond)) +
kTimeTToMicrosecondsOffset));