Use numeric_limits<double>::infinity() for conversions of Time::Max().
commit6c177f5cda18d8221e6112d0f0a6a24efec938f7
authorgavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 26 Feb 2014 14:59:17 +0000 (26 14:59 +0000)
committergavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 26 Feb 2014 14:59:17 +0000 (26 14:59 +0000)
treefe94d7ca60d88eaa06f36815c38325d92620a54a
parent7e72fb6daf3baa72a0a702f285f4326b367ef4c1
Use numeric_limits<double>::infinity() for conversions of Time::Max().

Infinity has mostly the same semantics of
numeric_limits<double>::max(), which was being used before, but with
the added bonus that numbers added and subtracted to it shouldn't
change it.

R=ajwong@chromium.org,jar@chromium.org,mkwst@chromium.org
BUG=None

Review URL: https://codereview.chromium.org/163493004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253455 0039d316-1c4b-4281-b951-d872f2087c98
base/time/time.cc
base/time/time_mac.cc
base/time/time_unittest.cc