Index: chrome/browser/ui/cocoa/browser_window_controller_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm b/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm |
index 0823f2ddd77c243196336cae988566f0b029797f..64faaf6718105f2646f7e3b311c6fdfd9d11397b 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm |
@@ -615,7 +615,7 @@ TEST_F(BrowserWindowControllerTest, TestFindBarOnTop) { |
[controller_ addFindBar:bridge.find_bar_cocoa_controller()]; |
// Test that the Z-order of the find bar is on top of everything. |
- NSArray* subviews = [[[controller_ window] contentView] subviews]; |
+ NSArray* subviews = [controller_.chromeContentView subviews]; |
NSUInteger findBar_index = |
[subviews indexOfObject:[controller_ findBarView]]; |
EXPECT_NE(NSNotFound, findBar_index); |