Index: chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm b/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm |
index a1344a3c6d4b027e8f7ec30541556b4370e668d8..80e8591e085690fd9105e9a96c7d4f0d5b0671b4 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm |
@@ -10,6 +10,7 @@ |
#include "base/mac/sdk_forward_declarations.h" |
#include "base/macros.h" |
#include "base/run_loop.h" |
+#include "base/stl_util.h" |
#include "base/strings/utf_string_conversions.h" |
#include "chrome/app/chrome_command_ids.h" |
#include "chrome/browser/browser_process.h" |
@@ -261,7 +262,7 @@ class BrowserWindowControllerTest : public InProcessBrowserTest { |
// Views not in |view_list| must either be nil or not parented. |
for (size_t i = 0; i < VIEW_ID_COUNT; ++i) { |
- if (std::find(view_list.begin(), view_list.end(), i) == view_list.end()) { |
+ if (!ContainsValue(view_list, i)) { |
NSView* view = GetViewWithID(static_cast<ViewID>(i)); |
EXPECT_TRUE(!view || ![view superview]); |
} |