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

Unified Diff: ppapi/shared_impl/time_conversion.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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 | « ppapi/shared_impl/thread_aware_callback_unittest.cc ('k') | ppapi/shared_impl/tracked_callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/time_conversion.cc
diff --git a/ppapi/shared_impl/time_conversion.cc b/ppapi/shared_impl/time_conversion.cc
index 27ea494b0fcde8291a705dbe6d29b164c7e041ec..8da14836f7bb28dcd673e46853dad2d26cdc385c 100644
--- a/ppapi/shared_impl/time_conversion.cc
+++ b/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()) {
« no previous file with comments | « ppapi/shared_impl/thread_aware_callback_unittest.cc ('k') | ppapi/shared_impl/tracked_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698