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

Unified Diff: ui/aura/monitor_change_observer_x11.cc

Issue 10310067: Remove ui-enable-dip option (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 7 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
« no previous file with comments | « ash/dip_unittest.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/monitor_change_observer_x11.cc
diff --git a/ui/aura/monitor_change_observer_x11.cc b/ui/aura/monitor_change_observer_x11.cc
index 30b998145b8e36fc247f88559015dd0c67ae51cd..59a0ebe51bd2a0a57264aef05f85d7280d091a81 100644
--- a/ui/aura/monitor_change_observer_x11.cc
+++ b/ui/aura/monitor_change_observer_x11.cc
@@ -112,8 +112,7 @@ void MonitorChangeObserverX11::NotifyMonitorChange() {
gfx::Rect(crtc_info->x, crtc_info->y, mode->width, mode->height)));
float device_scale_factor = 1.0f;
- if (ui::IsDIPEnabled() &&
- output_info->mm_width > 0 &&
+ if (output_info->mm_width > 0 &&
(kInchInMm * mode->width / output_info->mm_width) >
kHighDensityDIPThreshold) {
device_scale_factor = 2.0f;
« no previous file with comments | « ash/dip_unittest.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698