Index: chrome/browser/history/in_memory_url_index_unittest.cc |
diff --git a/chrome/browser/history/in_memory_url_index_unittest.cc b/chrome/browser/history/in_memory_url_index_unittest.cc |
index 29fed9b687d2830317b2597e9cd8113e5f9cb09e..b6b34f3cbf3453978e13ac3abe3c5fb7113eb8b3 100644 |
--- a/chrome/browser/history/in_memory_url_index_unittest.cc |
+++ b/chrome/browser/history/in_memory_url_index_unittest.cc |
@@ -15,6 +15,7 @@ |
#include "base/strings/string_util.h" |
#include "base/strings/utf_string_conversions.h" |
#include "chrome/browser/autocomplete/autocomplete_provider.h" |
+#include "chrome/browser/bookmarks/bookmark_model_factory.h" |
#include "chrome/browser/bookmarks/bookmark_test_helpers.h" |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/history/history_backend.h" |
@@ -189,7 +190,8 @@ void InMemoryURLIndexTest::SetUp() { |
// We cannot access the database until the backend has been loaded. |
ASSERT_TRUE(profile_.CreateHistoryService(true, false)); |
profile_.CreateBookmarkModel(true); |
- test::WaitForBookmarkModelToLoad(&profile_); |
+ test::WaitForBookmarkModelToLoad( |
+ BookmarkModelFactory::GetForProfile(&profile_)); |
profile_.BlockUntilHistoryProcessesPendingRequests(); |
profile_.BlockUntilHistoryIndexIsRefreshed(); |
history_service_ = HistoryServiceFactory::GetForProfile( |