Commit cc2b327b authored by kalyan.kondapally's avatar kalyan.kondapally Committed by Commit bot

GuessWindowManager is defined only on x11 platform.

This CL changes the platform check from Linux to X11.

Review URL: https://codereview.chromium.org/500713002

Cr-Commit-Position: refs/heads/master@{#291612}
parent 1d8498da
...@@ -30,7 +30,9 @@ ...@@ -30,7 +30,9 @@
#include <gnu/libc-version.h> #include <gnu/libc-version.h>
#include "base/version.h" #include "base/version.h"
#if defined(USE_X11)
#include "ui/base/x/x11_util.h" #include "ui/base/x/x11_util.h"
#endif
#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
#if defined(OS_WIN) #if defined(OS_WIN)
...@@ -133,7 +135,7 @@ void RecordLinuxGlibcVersion() { ...@@ -133,7 +135,7 @@ void RecordLinuxGlibcVersion() {
} }
void RecordLinuxWindowManager() { void RecordLinuxWindowManager() {
#if defined(OS_LINUX) && !defined(OS_CHROMEOS) #if defined(USE_X11) && !defined(OS_CHROMEOS)
ui::WindowManagerName name = ui::GuessWindowManager(); ui::WindowManagerName name = ui::GuessWindowManager();
UMALinuxWindowManager uma_name = UMA_LINUX_WINDOW_MANAGER_OTHER; UMALinuxWindowManager uma_name = UMA_LINUX_WINDOW_MANAGER_OTHER;
switch (name) { switch (name) {
......
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