Index: chrome/browser/extensions/extension_icon_image_unittest.cc |
diff --git a/chrome/browser/extensions/extension_icon_image_unittest.cc b/chrome/browser/extensions/extension_icon_image_unittest.cc |
index a6f0f1934bf2d8e9d10803fb09e4c790159c37cd..dfb8037986103b1bd8d803a622cf599b5a1226a0 100644 |
--- a/chrome/browser/extensions/extension_icon_image_unittest.cc |
+++ b/chrome/browser/extensions/extension_icon_image_unittest.cc |
@@ -21,6 +21,9 @@ |
#include "ui/base/resource/resource_bundle.h" |
#include "ui/gfx/image/image_skia_source.h" |
#include "ui/gfx/skia_util.h" |
+#if defined(OS_WIN) |
+#include "ui/gfx/win/dpi.h" |
+#endif |
using content::BrowserThread; |
using extensions::Extension; |
@@ -261,6 +264,12 @@ TEST_F(ExtensionIconImageTest, Basic) { |
EXPECT_TRUE(gfx::BitmapsAreEqual(representation.sk_bitmap(), bitmap_16)); |
EXPECT_EQ(16, representation.pixel_width()); |
+#if defined(OS_WIN) |
+ // High DPI breaks multi-resolution handling. Bail. |
+ if (gfx::IsHighDPIEnabled()) |
+ return; |
+#endif |
+ |
// Gets representation for an additional scale factor. |
representation = image.image_skia().GetRepresentation(2.0f); |