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

Unified Diff: ash/display/display_change_observer_chromeos.cc

Issue 465783002: Re-introduce IsDisplayBlacklisted for internal display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_change_observer_chromeos.cc
diff --git a/ash/display/display_change_observer_chromeos.cc b/ash/display/display_change_observer_chromeos.cc
index 2634622b3de7537cd6db1a19a0f18035361ae51e..1df63bde4077daa23ac49c71c0b65a5a4fb49cd4 100644
--- a/ash/display/display_change_observer_chromeos.cc
+++ b/ash/display/display_change_observer_chromeos.cc
@@ -192,9 +192,11 @@ void DisplayChangeObserver::OnDisplayModeChanged(
float device_scale_factor = 1.0f;
if (state.display->type() == ui::DISPLAY_CONNECTION_TYPE_INTERNAL) {
- device_scale_factor =
- FindDeviceScaleFactor((kInchInMm * mode_info->size().width() /
- state.display->physical_size().width()));
+ if (!ui::IsDisplaySizeBlackListed(state.display->physical_size())) {
+ device_scale_factor =
+ FindDeviceScaleFactor((kInchInMm * mode_info->size().width() /
+ state.display->physical_size().width()));
+ }
} else {
DisplayMode mode;
if (Shell::GetInstance()->display_manager()->GetSelectedModeForDisplayId(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698