Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2665)

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm

Issue 10827060: Removing instances of profile_->GetBookmarkModel() as part of converting BookmarkModel to a PKS. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm
===================================================================
--- chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm (revision 148477)
+++ chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm (working copy)
@@ -8,6 +8,7 @@
#include "base/memory/scoped_nsobject.h"
#include "base/string16.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#import "chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h"
#include "chrome/browser/ui/cocoa/browser_window_controller.h"
#include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
@@ -79,7 +80,8 @@
}
controller_ = [[BookmarkBubbleController alloc]
initWithParentWindow:test_window()
- model:profile()->GetBookmarkModel()
+ model:BookmarkModelFactory::GetForProfile(
+ profile())
node:node
alreadyBookmarked:YES];
EXPECT_TRUE([controller_ window]);
@@ -90,7 +92,7 @@
}
BookmarkModel* GetBookmarkModel() {
- return profile()->GetBookmarkModel();
+ return BookmarkModelFactory::GetForProfile(profile());
}
bool IsWindowClosing() {
@@ -395,7 +397,7 @@
BookmarkBubbleController* controller =
[[BookmarkBubbleController alloc]
initWithParentWindow:test_window()
- model:profile()->GetBookmarkModel()
+ model:BookmarkModelFactory::GetForProfile(profile())
node:node
alreadyBookmarked:NO]; // The last param is the key difference.
EXPECT_TRUE([controller window]);

Powered by Google App Engine
This is Rietveld 408576698