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

Unified Diff: ash/display/display_change_observer_chromeos.cc

Issue 208943002: Refactors getting available color profiles code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | ash/display/display_info.h » ('j') | ui/display/chromeos/native_display_delegate.h » ('J')
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 461b7be37fb6c7235fac9dd3fac67f4c697978db..dae75ae56b17d9e8751255a5649d48e7eecebd07 100644
--- a/ash/display/display_change_observer_chromeos.cc
+++ b/ash/display/display_change_observer_chromeos.cc
@@ -165,8 +165,10 @@ void DisplayChangeObserver::OnDisplayModeChanged(
displays.back().set_touch_support(
output.touch_device_id == 0 ? gfx::Display::TOUCH_SUPPORT_UNAVAILABLE :
gfx::Display::TOUCH_SUPPORT_AVAILABLE);
- displays.back().set_available_color_profiles(
- output.available_color_profiles);
+ std::vector<ui::ColorCalibrationProfile> available_profiles;
+ Shell::GetInstance()->output_configurator()->
+ GetAvailableColorCalibrationProfiles(id, &available_profiles);
+ displays.back().set_available_color_profiles(available_profiles);
}
// DisplayManager can be null during the boot.
« no previous file with comments | « no previous file | ash/display/display_info.h » ('j') | ui/display/chromeos/native_display_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698