| Index: ash/display/display_info.cc
|
| diff --git a/ash/display/display_info.cc b/ash/display/display_info.cc
|
| index 25b6a740186884a01abc85ce06925ac1cfaadc32..e3a4b63677b022d511523529b96eb72562f37952 100644
|
| --- a/ash/display/display_info.cc
|
| +++ b/ash/display/display_info.cc
|
| @@ -305,11 +305,15 @@ std::string DisplayInfo::ToFullString() const {
|
| }
|
|
|
| void DisplayInfo::SetColorProfile(ui::ColorCalibrationProfile profile) {
|
| - if (std::find(available_color_profiles_.begin(),
|
| - available_color_profiles_.end(),
|
| - profile) != available_color_profiles_.end()) {
|
| + if (IsColorProfileAvailable(profile))
|
| color_profile_ = profile;
|
| - }
|
| +}
|
| +
|
| +bool DisplayInfo::IsColorProfileAvailable(
|
| + ui::ColorCalibrationProfile profile) const {
|
| + return std::find(available_color_profiles_.begin(),
|
| + available_color_profiles_.end(),
|
| + profile) != available_color_profiles_.end();
|
| }
|
|
|
| } // namespace internal
|
|
|