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

Unified Diff: chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.cc

Issue 2947593005: Use ContainsValue() instead of std::find() in chrome/browser/ui/ (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
Index: chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.cc
diff --git a/chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.cc b/chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.cc
index 1d5acd8500c735fc19ec5092c31eec4db9388679..b723c3b10ea0a392c1ee80b43bf7ac17c48740e1 100644
--- a/chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.cc
+++ b/chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.h"
+#include "base/stl_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/common/channel_info.h"
#include "ui/accessibility/ax_node_data.h"
-#include "ui/accessibility/ax_node_data.h"
#include "ui/aura/window.h"
#include "ui/views/accessibility/ax_aura_obj_cache.h"
#include "ui/views/accessibility/ax_window_obj_wrapper.h"
@@ -37,7 +37,7 @@ views::AXAuraObjWrapper* AXRootObjWrapper::GetAlertForText(
bool AXRootObjWrapper::HasChild(views::AXAuraObjWrapper* child) {
std::vector<views::AXAuraObjWrapper*> children;
GetChildren(&children);
- return std::find(children.begin(), children.end(), child) != children.end();
+ return base::ContainsValue(children, child);
}
views::AXAuraObjWrapper* AXRootObjWrapper::GetParent() {

Powered by Google App Engine
This is Rietveld 408576698