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

Unified Diff: ui/gfx/font_unittest.cc

Issue 6990051: Unix ifdefs patch for ui/ and webkit/ (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: removed some too general ifdefs and ppapi changes Created 9 years, 7 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
Index: ui/gfx/font_unittest.cc
diff --git a/ui/gfx/font_unittest.cc b/ui/gfx/font_unittest.cc
index 7ea01db4d0b5ff2edbbbb92135315fe84fc3bfda..b8de407bb92df218742f0752ba1e1c873aa80e4e 100644
--- a/ui/gfx/font_unittest.cc
+++ b/ui/gfx/font_unittest.cc
@@ -7,7 +7,7 @@
#include "base/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
-#if defined(OS_LINUX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
#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(gfx::NativeFont font) {
-#if defined(OS_LINUX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
pango_font_description_free(font);
#endif
}
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/gfx/gl/gl_bindings.h » ('j') | ui/gfx/image_unittest_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698