summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/codec/png_codec.cc4
-rw-r--r--ui/gfx/codec/png_codec_unittest.cc7
2 files changed, 1 insertions, 10 deletions
diff --git a/ui/gfx/codec/png_codec.cc b/ui/gfx/codec/png_codec.cc
index 474fbc9..e0dc4c6 100644
--- a/ui/gfx/codec/png_codec.cc
+++ b/ui/gfx/codec/png_codec.cc
@@ -14,11 +14,7 @@
#include "third_party/skia/include/core/SkColorPriv.h"
extern "C" {
-#if defined(USE_SYSTEM_LIBPNG)
-#include <png.h>
-#else
#include "third_party/libpng/png.h"
-#endif
#if defined(USE_SYSTEM_ZLIB)
#include <zlib.h>
diff --git a/ui/gfx/codec/png_codec_unittest.cc b/ui/gfx/codec/png_codec_unittest.cc
index 83f535e..ef21d38 100644
--- a/ui/gfx/codec/png_codec_unittest.cc
+++ b/ui/gfx/codec/png_codec_unittest.cc
@@ -2,17 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#if defined(USE_SYSTEM_LIBPNG)
-#include <png.h>
-#else
-#include "third_party/libpng/png.h"
-#endif
-
#include <algorithm>
#include <cmath>
#include "base/logging.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "third_party/libpng/png.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColorPriv.h"
#include "third_party/skia/include/core/SkUnPreMultiply.h"