| Index: components/startup_metric_utils/browser/startup_metric_utils.cc
|
| diff --git a/components/startup_metric_utils/browser/startup_metric_utils.cc b/components/startup_metric_utils/browser/startup_metric_utils.cc
|
| index 53dfba3259f95255ad2de3f13df47e76240c1dae..6cf036f12497359ba1937c10cb18836e8923ad52 100644
|
| --- a/components/startup_metric_utils/browser/startup_metric_utils.cc
|
| +++ b/components/startup_metric_utils/browser/startup_metric_utils.cc
|
| @@ -238,7 +238,6 @@ base::TimeTicks StartupTimeToTimeTicks(const base::Time& time) {
|
|
|
| // platform_thread_mac.mm unfortunately doesn't properly support base's
|
| // thread priority APIs (crbug.com/554651).
|
| -#if !defined(OS_MACOSX)
|
| static bool statics_initialized = false;
|
|
|
| base::ThreadPriority previous_priority = base::ThreadPriority::NORMAL;
|
| @@ -247,18 +246,15 @@ base::TimeTicks StartupTimeToTimeTicks(const base::Time& time) {
|
| base::PlatformThread::SetCurrentThreadPriority(
|
| base::ThreadPriority::DISPLAY);
|
| }
|
| -#endif
|
|
|
| static const base::Time time_base = base::Time::Now();
|
| static const base::TimeTicks trace_ticks_base = base::TimeTicks::Now();
|
|
|
| -#if !defined(OS_MACOSX)
|
| if (!statics_initialized) {
|
| base::PlatformThread::SetCurrentThreadPriority(previous_priority);
|
| }
|
|
|
| statics_initialized = true;
|
| -#endif
|
|
|
| // Then use the TimeDelta common ground between the two units to make the
|
| // conversion.
|
|
|