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

Unified Diff: base/trace_event/trace_log.cc

Issue 2903323002: fuchsia: Don't reference CurrentProcessInfo::CreationTime() (Closed)
Patch Set: fix comment Created 3 years, 7 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 | « base/process/process_info_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_log.cc
diff --git a/base/trace_event/trace_log.cc b/base/trace_event/trace_log.cc
index b6570fdade052b8e93e2bc266975b1d1f5a97498..c22efcef024132e1be9ce4adaef4f7408cdc0812 100644
--- a/base/trace_event/trace_log.cc
+++ b/base/trace_event/trace_log.cc
@@ -1500,7 +1500,8 @@ void TraceLog::AddMetadataEventsWhileLocked() {
process_name_);
}
-#if !defined(OS_NACL) && !defined(OS_IOS)
+// See https://crbug.com/726484 for Fuchsia.
+#if !defined(OS_NACL) && !defined(OS_IOS) && !defined(OS_FUCHSIA)
Time process_creation_time = CurrentProcessInfo::CreationTime();
if (!process_creation_time.is_null()) {
TimeDelta process_uptime = Time::Now() - process_creation_time;
@@ -1508,7 +1509,7 @@ void TraceLog::AddMetadataEventsWhileLocked() {
current_thread_id, "process_uptime_seconds",
"uptime", process_uptime.InSeconds());
}
-#endif // !defined(OS_NACL) && !defined(OS_IOS)
+#endif // !defined(OS_NACL) && !defined(OS_IOS) && !defined(OS_FUCHSIA)
if (!process_labels_.empty()) {
std::vector<base::StringPiece> labels;
« no previous file with comments | « base/process/process_info_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698