Index: ui/base/models/list_selection_model.cc |
diff --git a/ui/base/models/list_selection_model.cc b/ui/base/models/list_selection_model.cc |
index 5b9fc86db5fc6ec5254b14a1668af9c380dfdb6a..0226ac7d85cc227db6e37fca8a067430260a254a 100644 |
--- a/ui/base/models/list_selection_model.cc |
+++ b/ui/base/models/list_selection_model.cc |
@@ -8,6 +8,7 @@ |
#include <valarray> |
#include "base/logging.h" |
+#include "base/stl_util.h" |
namespace ui { |
@@ -67,8 +68,7 @@ void ListSelectionModel::SetSelectedIndex(int index) { |
} |
bool ListSelectionModel::IsSelected(int index) const { |
- return std::find(selected_indices_.begin(), selected_indices_.end(), index) != |
- selected_indices_.end(); |
+ return base::ContainsValue(selected_indices_, index); |
} |
void ListSelectionModel::AddIndexToSelection(int index) { |