Index: chrome/browser/sync/profile_sync_service_bookmark_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc b/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc |
index 25d1ebb570bfa15b4eca5cc5cf7ef3f59c37a27b..e5adeedc9a54ce19960b97da5cee446c88365517 100644 |
--- a/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc |
@@ -31,6 +31,7 @@ |
#include "chrome/browser/sync/glue/data_type_error_handler_mock.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/test/base/testing_profile.h" |
+#include "chrome/test/base/ui_test_utils.h" |
#include "content/public/test/test_browser_thread.h" |
#include "sync/api/sync_error.h" |
#include "sync/internal_api/public/change_record.h" |
@@ -292,8 +293,7 @@ class ProfileSyncServiceBookmarkTest : public testing::Test { |
bool delete_bookmarks = load == DELETE_EXISTING_STORAGE; |
profile_.CreateBookmarkModel(delete_bookmarks); |
model_ = BookmarkModelFactory::GetForProfile(&profile_); |
- // Wait for the bookmarks model to load. |
- profile_.BlockUntilBookmarkModelLoaded(); |
+ ui_test_utils::WaitForBookmarkModelToLoad(model_); |
// This noticeably speeds up the unit tests that request it. |
if (save == DONT_SAVE_TO_STORAGE) |
model_->ClearStore(); |