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

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, 8 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 581baadefbd991b73064693793f6566522871280..7741d5a68923631523eedc97f35b9a1084a9945a 100644
--- a/chrome/browser/themes/browser_theme_pack.cc
+++ b/chrome/browser/themes/browser_theme_pack.cc
@@ -889,10 +889,8 @@ 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))
scale_factors_.push_back(ui::SCALE_FACTOR_100P);
- }
}
void BrowserThemePack::BuildHeader(const Extension* extension) {

Powered by Google App Engine
This is Rietveld 408576698