Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4597)

Unified Diff: base/time/time.cc

Issue 14600025: Replace AudioSilenceDetector with an AudioPowerMonitor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use CancelableCallback instead of extra-task for close reply. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/float_util.h ('k') | chrome/browser/media/audio_stream_indicator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/time.cc
diff --git a/base/time/time.cc b/base/time/time.cc
index 1a3f6c38c50f4b6f0fed5f9f1a999f477b7db82c..5f495e3f1e57002a33c5b241d9828e8d2884a641 100644
--- a/base/time/time.cc
+++ b/base/time/time.cc
@@ -5,24 +5,15 @@
#include "base/time/time.h"
#include <math.h>
-#if defined(OS_WIN)
-#include <float.h>
-#endif
-
#include <limits>
+#include "base/float_util.h"
#include "base/logging.h"
#include "base/strings/sys_string_conversions.h"
#include "base/third_party/nspr/prtime.h"
namespace base {
-namespace {
-#if defined(OS_WIN)
-inline bool isnan(double num) { return !!_isnan(num); }
-#endif
-}
-
// TimeDelta ------------------------------------------------------------------
int TimeDelta::InDays() const {
@@ -95,7 +86,7 @@ time_t Time::ToTimeT() const {
// static
Time Time::FromDoubleT(double dt) {
- if (dt == 0 || isnan(dt))
+ if (dt == 0 || IsNaN(dt))
return Time(); // Preserve 0 so we can tell it doesn't exist.
if (dt == std::numeric_limits<double>::max())
return Max();
« no previous file with comments | « base/float_util.h ('k') | chrome/browser/media/audio_stream_indicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698