Commit 238aaaaf authored by timbrown's avatar timbrown Committed by Commit Bot

Fix Ozone build.

The #if guards on the function which records the linux distro are different to the guards on the function call. This results in the function being unused in the ozone build, which is a warning (turned into an error) causing the build to fail.

The fix is simply to unify the conditions of the #if guards.

BUG=724244
R=thomasanderson@chromium.org,rkaplow@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_ozone_compile_only_ng

Review-Url: https://codereview.chromium.org/2917483002
Cr-Commit-Position: refs/heads/master@{#476332}
parent a7dc4e82
......@@ -464,10 +464,11 @@ void ChromeBrowserMainExtraPartsMetrics::PreBrowserStart() {
void ChromeBrowserMainExtraPartsMetrics::PostBrowserStart() {
RecordLinuxGlibcVersion();
#if defined(USE_X11) && !defined(OS_CHROMEOS)
UMA_HISTOGRAM_ENUMERATION("Linux.WindowManager",
GetLinuxWindowManager(),
#if defined(OS_LINUX) && defined(USE_X11) && !defined(OS_CHROMEOS)
UMA_HISTOGRAM_ENUMERATION("Linux.WindowManager", GetLinuxWindowManager(),
UMA_LINUX_WINDOW_MANAGER_COUNT);
#endif
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
base::PostTaskWithTraits(FROM_HERE,
{base::MayBlock(), base::TaskPriority::BACKGROUND},
base::BindOnce(&RecordLinuxDistro));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment