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

Unified Diff: ui/display/manager/managed_display_info.cc

Issue 2926383003: Use ContainsValue() instead of std::find() in ui/aura, ui/display and ui/events (Closed)
Patch Set: Created 3 years, 6 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 | « ui/display/manager/display_manager.cc ('k') | ui/display/win/screen_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/manager/managed_display_info.cc
diff --git a/ui/display/manager/managed_display_info.cc b/ui/display/manager/managed_display_info.cc
index bf3d276dfdaa8d7a790d7e1bfe70920f85f42589..4ed44db6437ccde50ad2be05bc8f9d02d71377ca 100644
--- a/ui/display/manager/managed_display_info.cc
+++ b/ui/display/manager/managed_display_info.cc
@@ -6,11 +6,11 @@
#include <stdio.h>
-#include <algorithm>
#include <string>
#include <vector>
#include "base/logging.h"
+#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
@@ -507,9 +507,7 @@ void ManagedDisplayInfo::SetColorProfile(ColorCalibrationProfile profile) {
bool ManagedDisplayInfo::IsColorProfileAvailable(
ColorCalibrationProfile profile) const {
- return std::find(available_color_profiles_.begin(),
- available_color_profiles_.end(),
- profile) != available_color_profiles_.end();
+ return base::ContainsValue(available_color_profiles_, profile);
}
bool ManagedDisplayInfo::Use125DSFForUIScaling() const {
« no previous file with comments | « ui/display/manager/display_manager.cc ('k') | ui/display/win/screen_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698