Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 5942bc7a17c1ab2c46ecce63836e2c8d9cb5359a..ae6cd471e4218d604b976bd683411e363bc1821f 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -28,7 +28,6 @@ |
#include "content/browser/web_contents/navigation_controller_impl.h" |
#include "content/browser/web_contents/navigation_entry_impl.h" |
#include "content/browser/web_contents/web_contents_view_android.h" |
-#include "content/common/android/device_info.h" |
#include "content/common/view_messages.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/favicon_status.h" |
@@ -176,8 +175,9 @@ ContentViewCoreImpl::ContentViewCoreImpl(JNIEnv* env, jobject obj, |
switches::kEnableCssTransformPinch)) { |
dpi_scale_ = 1; |
} else { |
- scoped_ptr<content::DeviceInfo> device_info(new content::DeviceInfo()); |
- dpi_scale_ = device_info->GetDPIScale(); |
+ const gfx::Display& display = |
+ gfx::Screen::GetNativeScreen()->GetPrimaryDisplay(); |
+ dpi_scale_ = display.device_scale_factor(); |
} |
// Currently, the only use case we have for overriding a user agent involves |