Index: chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc |
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc |
index 1bdc68d6ba79192a584e3cca01beaae1f223dc7d..3238243538bac4c7f151fb5955452dd95785a1d5 100644 |
--- a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc |
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc |
@@ -29,12 +29,12 @@ class BookmarkBubbleViewTest : public BrowserWithTestWindowTest { |
BrowserWithTestWindowTest::SetUp(); |
profile()->CreateBookmarkModel(true); |
- test::WaitForBookmarkModelToLoad(profile()); |
+ BookmarkModel* bookmark_model = |
+ BookmarkModelFactory::GetForProfile(profile()); |
+ test::WaitForBookmarkModelToLoad(bookmark_model); |
bookmark_utils::AddIfNotBookmarked( |
- BookmarkModelFactory::GetForProfile(profile()), |
- GURL(kTestBookmarkURL), |
- base::string16()); |
+ bookmark_model, GURL(kTestBookmarkURL), base::string16()); |
} |
virtual void TearDown() OVERRIDE { |