diff options
Diffstat (limited to 'chromium/ppapi/shared_impl/time_conversion.cc')
-rw-r--r-- | chromium/ppapi/shared_impl/time_conversion.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/chromium/ppapi/shared_impl/time_conversion.cc b/chromium/ppapi/shared_impl/time_conversion.cc index 27ea494b0fc..8da14836f7b 100644 --- a/chromium/ppapi/shared_impl/time_conversion.cc +++ b/chromium/ppapi/shared_impl/time_conversion.cc @@ -25,9 +25,7 @@ double GetTimeToTimeTicksDeltaInSeconds() { } // namespace -PP_Time TimeToPPTime(base::Time t) { - return t.ToDoubleT(); -} +PP_Time TimeToPPTime(base::Time t) { return t.ToDoubleT(); } base::Time PPTimeToTime(PP_Time t) { // The time code handles exact "0" values as special, and produces @@ -41,7 +39,7 @@ base::Time PPTimeToTime(PP_Time t) { PP_TimeTicks TimeTicksToPPTimeTicks(base::TimeTicks t) { return static_cast<double>(t.ToInternalValue()) / - base::Time::kMicrosecondsPerSecond; + base::Time::kMicrosecondsPerSecond; } PP_TimeTicks EventTimeToPPTimeTicks(double event_time) { @@ -56,8 +54,8 @@ double PPGetLocalTimeZoneOffset(const base::Time& time) { // Explode it to local time and then unexplode it as if it were UTC. Also // explode it to UTC and unexplode it (this avoids mismatching rounding or // lack thereof). The time zone offset is their difference. - base::Time::Exploded exploded = { 0 }; - base::Time::Exploded utc_exploded = { 0 }; + base::Time::Exploded exploded = {0}; + base::Time::Exploded utc_exploded = {0}; time.LocalExplode(&exploded); time.UTCExplode(&utc_exploded); if (exploded.HasValidValues() && utc_exploded.HasValidValues()) { |