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

Unified Diff: chromecast/base/time_conversions.cc

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test + android fixes Created 5 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
Index: chromecast/base/time_conversions.cc
diff --git a/chromecast/base/time_conversions.cc b/chromecast/base/time_conversions.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b07b933393e81cf9162a9a00a9c22abfd227fa02
--- /dev/null
+++ b/chromecast/base/time_conversions.cc
@@ -0,0 +1,17 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromecast/base/time_conversions.h"
+
+namespace chromecast {
+
+base::TimeDelta ToBaseTimeDelta(TimeDelta delta) {
+ return base::TimeDelta::FromMicroseconds(delta.InMicroseconds());
+}
+
+TimeDelta FromBaseTimeDelta(base::TimeDelta delta) {
+ return TimeDelta::FromMicroseconds(delta.InMicroseconds());
+}
+
+} // namespace chromecast

Powered by Google App Engine
This is Rietveld 408576698