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

Unified Diff: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc

Issue 500713002: Fix linking issue for Chromium Browser with Ozone build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include x11_utils only on x11 platform Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
diff --git a/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
index 93f0f46a3fec96f18f08dc9114f595e15973d23c..1b490fcff60f5d04563849532f82cd06989b32ed 100644
--- a/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
+++ b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
@@ -30,7 +30,9 @@
#include <gnu/libc-version.h>
#include "base/version.h"
+#if defined(USE_X11)
#include "ui/base/x/x11_util.h"
+#endif
#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
#if defined(OS_WIN)
@@ -133,7 +135,7 @@ void RecordLinuxGlibcVersion() {
}
void RecordLinuxWindowManager() {
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(USE_X11) && !defined(OS_CHROMEOS)
ui::WindowManagerName name = ui::GuessWindowManager();
UMALinuxWindowManager uma_name = UMA_LINUX_WINDOW_MANAGER_OTHER;
switch (name) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698