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

Unified Diff: ui/base/x/x11_util.cc

Issue 2930573005: Use ContainsValue() instead of std::find() in ui/android, ui/base and ui/views (Closed)
Patch Set: Changed EXPECT_FALSE to EXPECT_TRUE 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/base/x/selection_utils.cc ('k') | ui/views/layout/grid_layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util.cc
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
index bf3231c2e8d3375dfabc6ab52550deb7436acfa8..c12c95f7e64d845121b6f389c28d13fec9efe9bc 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -1203,10 +1203,7 @@ bool IsX11WindowFullScreen(XID window) {
if (GetAtomArrayProperty(window,
"_NET_WM_STATE",
&atom_properties)) {
- return std::find(atom_properties.begin(),
- atom_properties.end(),
- fullscreen_atom) !=
- atom_properties.end();
+ return base::ContainsValue(atom_properties, fullscreen_atom);
}
}
@@ -1237,8 +1234,7 @@ bool WmSupportsHint(XAtom atom) {
return false;
}
- return std::find(supported_atoms.begin(), supported_atoms.end(), atom) !=
- supported_atoms.end();
+ return base::ContainsValue(supported_atoms, atom);
}
XRefcountedMemory::XRefcountedMemory(unsigned char* x11_data, size_t length)
« no previous file with comments | « ui/base/x/selection_utils.cc ('k') | ui/views/layout/grid_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698