Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm |
=================================================================== |
--- chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm (revision 148477) |
+++ chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm (working copy) |
@@ -6,6 +6,7 @@ |
#include "base/string16.h" |
#include "base/utf_string_conversions.h" |
#include "chrome/browser/bookmarks/bookmark_model.h" |
+#include "chrome/browser/bookmarks/bookmark_model_factory.h" |
#include "chrome/browser/profiles/profile.h" |
#import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
#import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view.h" |
@@ -212,7 +213,8 @@ |
[view_ setController:info.get()]; |
[info reset]; |
- BookmarkModel* bookmark_model = profile()->GetBookmarkModel(); |
+ BookmarkModel* bookmark_model = |
+ BookmarkModelFactory::GetForProfile(profile()); |
const BookmarkNode* node = |
bookmark_model->AddURL(bookmark_model->bookmark_bar_node(), |
0, |
@@ -251,7 +253,8 @@ |
other_profile->CreateBookmarkModel(true); |
other_profile->BlockUntilBookmarkModelLoaded(); |
- BookmarkModel* bookmark_model = profile()->GetBookmarkModel(); |
+ BookmarkModel* bookmark_model = |
+ BookmarkModelFactory::GetForProfile(profile()); |
const BookmarkNode* node = |
bookmark_model->AddURL(bookmark_model->bookmark_bar_node(), |
0, |
@@ -268,7 +271,7 @@ |
[info setDraggingSource:dragged_button.get()]; |
[info setDragDataType:kBookmarkButtonDragType]; |
[info setButton:dragged_button.get()]; |
- [info setBookmarkModel:other_profile->GetBookmarkModel()]; |
+ [info setBookmarkModel:BookmarkModelFactory::GetForProfile(other_profile)]; |
EXPECT_EQ([view_ draggingEntered:(id)info.get()], NSDragOperationMove); |
EXPECT_TRUE([view_ performDragOperation:(id)info.get()]); |
EXPECT_TRUE([info dragButtonToPong]); |