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

Unified Diff: base/profiler/tracked_time.cc

Issue 777853003: Misc. warning fixes/cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | chrome/common/worker_thread_ticker.h » ('j') | chrome/common/worker_thread_ticker.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/profiler/tracked_time.cc
diff --git a/base/profiler/tracked_time.cc b/base/profiler/tracked_time.cc
index 7791c3adc6b8580f09ccffd100bc6a2dd241c81f..0121038f7548d0fa644c4d11d3d853d68dfde286 100644
--- a/base/profiler/tracked_time.cc
+++ b/base/profiler/tracked_time.cc
@@ -46,7 +46,7 @@ int32 Duration::InMilliseconds() const { return ms_; }
TrackedTime::TrackedTime() : ms_(0) {}
TrackedTime::TrackedTime(int32 ms) : ms_(ms) {}
TrackedTime::TrackedTime(const base::TimeTicks& time)
- : ms_((time - base::TimeTicks()).InMilliseconds()) {
+ : ms_(static_cast<int32>((time - base::TimeTicks()).InMilliseconds())) {
}
// static
« no previous file with comments | « no previous file | chrome/common/worker_thread_ticker.h » ('j') | chrome/common/worker_thread_ticker.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698