Index: content/test/blink_test_environment.cc |
diff --git a/content/test/blink_test_environment.cc b/content/test/blink_test_environment.cc |
index b9655fef6357acbbd289f6359d380e6a029fa229..579e7737afc72db171ac8e8a279b24d4ebe6693e 100644 |
--- a/content/test/blink_test_environment.cc |
+++ b/content/test/blink_test_environment.cc |
@@ -18,12 +18,9 @@ |
#include "third_party/WebKit/public/web/WebCache.h" |
#include "third_party/WebKit/public/web/WebKit.h" |
#include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
+#include "ui/gfx/dpi.h" |
#include "url/url_util.h" |
-#if defined(OS_WIN) |
-#include "ui/gfx/win/dpi.h" |
-#endif |
- |
#if defined(OS_ANDROID) |
#include "base/android/jni_android.h" |
#include "net/android/network_library.h" |
@@ -100,7 +97,7 @@ void SetUpBlinkTestEnvironment() { |
mock_cr_app::RegisterMockCrApp(); |
#endif |
-#if defined(OS_WIN) |
+#if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS)) |
gfx::InitDeviceScaleFactor(1.0f); |
#endif |