Index: chrome/browser/extensions/api/bookmarks/bookmark_apitest.cc |
diff --git a/chrome/browser/extensions/api/bookmarks/bookmark_apitest.cc b/chrome/browser/extensions/api/bookmarks/bookmark_apitest.cc |
index 39fd91418f5d6f1c2a267cf7a422cb80dafb374f..75fe94389b045de166f0f61490b259dd494cd841 100644 |
--- a/chrome/browser/extensions/api/bookmarks/bookmark_apitest.cc |
+++ b/chrome/browser/extensions/api/bookmarks/bookmark_apitest.cc |
@@ -31,7 +31,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_Bookmarks) { |
// Add test managed and supervised bookmarks to verify that the bookmarks API |
// can read them and can't modify them. |
Profile* profile = browser()->profile(); |
- BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile); |
+ BookmarkModel* model = BookmarkModelFactory::GetForBrowserContext(profile); |
bookmarks::ManagedBookmarkService* managed = |
ManagedBookmarkServiceFactory::GetForProfile(profile); |
bookmarks::test::WaitForBookmarkModelToLoad(model); |