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 c92f2dce705bd1cbac062584ccdc088eb90963fd..e30bf5a779845e3b9f7fdc6a33464d9ea343a407 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]); |
} |