Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm |
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm |
index 55155efc3250fb173626558b938766078fda40e2..473f71e5bc9d3894e8f12a92349fa9c63e0b194b 100644 |
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm |
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm |
@@ -16,6 +16,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" |
@@ -251,10 +252,11 @@ TEST_F(BookmarkBarViewTest, BookmarkButtonDragAndDropAcrossProfiles) { |
TestingProfile* other_profile = |
testing_profile_manager()->CreateTestingProfile("other"); |
other_profile->CreateBookmarkModel(true); |
- other_profile->BlockUntilBookmarkModelLoaded(); |
BookmarkModel* bookmark_model = |
BookmarkModelFactory::GetForProfile(profile()); |
+ ui_test_utils::WaitForBookmarkModelToLoad(bookmark_model); |
+ |
const BookmarkNode* node = |
bookmark_model->AddURL(bookmark_model->bookmark_bar_node(), |
0, |