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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new android code Created 8 years, 2 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: 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 d1cf353ec6335cb4b4b55326926fda9b97b4caae..52b4abadd33679be0b8baded9f1fa910a054ccb3 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -97,7 +97,7 @@ ContentViewCoreImpl::ContentViewCoreImpl(JNIEnv* env, jobject obj,
InitJNI(env, obj);
- if (!gfx::Screen::IsDIPEnabled()) {
+ if (!gfx::Screen::GetNativeScreen()->IsDIPEnabled()) {
dpi_scale_ = 1;
} else {
scoped_ptr<content::DeviceInfo> device_info(new content::DeviceInfo());

Powered by Google App Engine
This is Rietveld 408576698