Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm |
index 25da95d3fa11ec852a8607d184a2101c7960a20d..fa886dd4e1051a631472a8344135ac9022a7347d 100644 |
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm |
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm |
@@ -15,6 +15,7 @@ |
#include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
#import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
#import "chrome/browser/ui/cocoa/url_drop_target.h" |
+#include "chrome/test/base/ui_test_utils.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "testing/platform_test.h" |
#import "third_party/mozilla/NSPasteboard+Utils.h" |
@@ -156,7 +157,7 @@ TEST_F(BookmarkBarFolderViewTest, BookmarkButtonDragAndDropAcrossProfiles) { |
TestingProfile* other_profile = |
testing_profile_manager()->CreateTestingProfile("other"); |
other_profile->CreateBookmarkModel(true); |
- other_profile->BlockUntilBookmarkModelLoaded(); |
+ ui_test_utils::WaitForBookmarkModelToLoad(other_profile); |
mock_controller_.reset(GetMockController( |
YES, BookmarkModelFactory::GetForProfile(other_profile))); |