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

Unified Diff: chrome/browser/themes/browser_theme_pack.cc

Issue 1715683002: chrome: Use base's ContainsValue helper function instead of std::find (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per latest code Created 4 years, 10 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
Index: chrome/browser/themes/browser_theme_pack.cc
diff --git a/chrome/browser/themes/browser_theme_pack.cc b/chrome/browser/themes/browser_theme_pack.cc
index 628b987b30349a8109a4c95dfc107a903ddb238e..ae7942c3b43647340b61bf9cb2ea01d6b9b7d7bd 100644
--- a/chrome/browser/themes/browser_theme_pack.cc
+++ b/chrome/browser/themes/browser_theme_pack.cc
@@ -887,8 +887,7 @@ BrowserThemePack::BrowserThemePack()
source_images_(NULL) {
scale_factors_ = ui::GetSupportedScaleFactors();
// On Windows HiDPI SCALE_FACTOR_100P may not be supported by default.
- if (std::find(scale_factors_.begin(), scale_factors_.end(),
- ui::SCALE_FACTOR_100P) == scale_factors_.end()) {
+ if (!ContainsValue(scale_factors_, ui::SCALE_FACTOR_100P)) {
sky 2016/03/02 17:19:35 nit: no {}
chakshu 2016/03/07 08:10:46 Done.
scale_factors_.push_back(ui::SCALE_FACTOR_100P);
}
}

Powered by Google App Engine
This is Rietveld 408576698