blob: d64e09197a3f0e439b5b3ba4589813b3b59b90dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- chrome/browser/extensions/install_signer.cc.orig 2019-03-17 20:14:24 UTC
+++ chrome/browser/extensions/install_signer.cc
@@ -293,13 +293,13 @@ void LogRequestStartHistograms() {
DCHECK(g_single_thread_checker.Get().CalledOnValidThread());
// Process::Current().CreationTime is only defined on some platforms.
-#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX)
+#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD)
const base::Time process_creation_time =
base::Process::Current().CreationTime();
UMA_HISTOGRAM_COUNTS_1M(
"ExtensionInstallSigner.UptimeAtTimeOfRequest",
(base::Time::Now() - process_creation_time).InSeconds());
-#endif // defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX)
+#endif // defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD)
base::TimeDelta delta;
base::TimeTicks now = base::TimeTicks::Now();
|