Index: chrome/browser/ui/cocoa/cocoa_profile_test.mm |
diff --git a/chrome/browser/ui/cocoa/cocoa_profile_test.mm b/chrome/browser/ui/cocoa/cocoa_profile_test.mm |
index bc3f1dff81c2aecb6038181b08143850b02e1bcc..4d56be37d95d7c60618705d17698e85e3be8f478 100644 |
--- a/chrome/browser/ui/cocoa/cocoa_profile_test.mm |
+++ b/chrome/browser/ui/cocoa/cocoa_profile_test.mm |
@@ -12,6 +12,7 @@ |
#include "chrome/browser/ui/host_desktop.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
#include "chrome/test/base/testing_browser_process.h" |
+#include "chrome/test/base/ui_test_utils.h" |
#include "content/public/test/test_browser_thread.h" |
using content::BrowserThread; |
@@ -61,7 +62,7 @@ void CocoaProfileTest::SetUp() { |
ASSERT_TRUE(profile_); |
profile_->CreateBookmarkModel(true); |
- profile_->BlockUntilBookmarkModelLoaded(); |
+ ui_test_utils::WaitForBookmarkModelToLoad(profile_); |
// TODO(shess): These are needed in case someone creates a browser |
// window off of browser_. pkasting indicates that other |