Index: ui/gfx/font_unittest.cc |
diff --git a/ui/gfx/font_unittest.cc b/ui/gfx/font_unittest.cc |
index 073ffb51f651370ecf5402d3fa7ed9f6d6179b6f..2fe61939d14bf6e9f7d8e60583a7b38a3e410c40 100644 |
--- a/ui/gfx/font_unittest.cc |
+++ b/ui/gfx/font_unittest.cc |
@@ -8,7 +8,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
+#if defined(OS_LINUX) && !defined(USE_OZONE) |
#include <pango/pango.h> |
#elif defined(OS_WIN) |
#include "ui/gfx/platform_font_win.h" |
@@ -22,7 +22,7 @@ class FontTest : public testing::Test { |
// Fulfills the memory management contract as outlined by the comment at |
// gfx::Font::GetNativeFont(). |
void FreeIfNecessary(NativeFont font) { |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
+#if defined(OS_LINUX) && !defined(USE_OZONE) |
pango_font_description_free(font); |
#endif |
} |