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

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: fix new addition 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 273fd5f8c66772f9f2ca36f2fc7e8144457081e2..b18831bde52ca5a2b832f5a3f73e3e844fbef09e 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -98,7 +98,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());
« no previous file with comments | « chrome/browser/ui/window_sizer/window_sizer_gtk.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698