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

Unified Diff: base/profiler/tracked_time.cc

Issue 9818004: Cleanup: Replace 'DurationInt' with int32, and always use 32-bit integers for tracking time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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: base/profiler/tracked_time.cc
diff --git a/base/profiler/tracked_time.cc b/base/profiler/tracked_time.cc
index 0e227bd4dbcf252a5618c4ae536211d00f0d2e62..3c51081e3c0780ac722d319cb8446fe92dea8244 100644
--- a/base/profiler/tracked_time.cc
+++ b/base/profiler/tracked_time.cc
@@ -12,8 +12,6 @@
namespace tracked_objects {
-#if defined(USE_FAST_TIME_CLASS_FOR_DURATION_CALCULATIONS)
-
Duration::Duration() : ms_(0) {}
Duration::Duration(int32 duration) : ms_(duration) {}
@@ -75,6 +73,4 @@ TrackedTime TrackedTime::operator+(const Duration& other) const {
bool TrackedTime::is_null() const { return ms_ == 0; }
-#endif // USE_FAST_TIME_CLASS_FOR_DURATION_CALCULATIONS
-
} // namespace tracked_objects

Powered by Google App Engine
This is Rietveld 408576698