mac: Fix BookmarkBarControllerTest.TestClearOnDealloc on Yosemite.
commit1124df6b0a9a980605f8ce342bf1a49403656a84
authorerikchen <erikchen@chromium.org>
Mon, 20 Oct 2014 19:22:28 +0000 (20 12:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 20 Oct 2014 19:22:43 +0000 (20 19:22 +0000)
tree43516988af39ca66002f57124cdac85fc34098e1
parent31111d18aadc37181a249afa74a62ac46544e12e
mac: Fix BookmarkBarControllerTest.TestClearOnDealloc on Yosemite.

In Yosemite, the owner of a nib file is retain/autoreleased during the
initialization of the nib. I wrapped the constructor of the
BookmarkBarController in an @autoreleasepool block to allow the test to control
the destruction timing of the BookmarkBarController.

BUG=390276

Review URL: https://codereview.chromium.org/660063004

Cr-Commit-Position: refs/heads/master@{#300312}
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm