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

Unified Diff: chrome/browser/bookmarks/bookmark_node_data_unittest.cc

Issue 10821097: 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/bookmarks/bookmark_node_data_unittest.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_node_data_unittest.cc (revision 149452)
+++ chrome/browser/bookmarks/bookmark_node_data_unittest.cc (working copy)
@@ -7,6 +7,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/bookmarks/bookmark_node_data.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/test_browser_thread.h"
@@ -77,7 +78,7 @@
profile.CreateBookmarkModel(false);
profile.BlockUntilBookmarkModelLoaded();
profile.SetID(L"id");
- BookmarkModel* model = profile.GetBookmarkModel();
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(&profile);
const BookmarkNode* root = model->bookmark_bar_node();
GURL url(GURL("http://foo.com"));
const string16 title(ASCIIToUTF16("blah"));
@@ -120,7 +121,7 @@
profile.CreateBookmarkModel(false);
profile.BlockUntilBookmarkModelLoaded();
profile.SetID(L"id");
- BookmarkModel* model = profile.GetBookmarkModel();
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(&profile);
const BookmarkNode* root = model->bookmark_bar_node();
const BookmarkNode* g1 = model->AddFolder(root, 0, ASCIIToUTF16("g1"));
const BookmarkNode* g11 = model->AddFolder(g1, 0, ASCIIToUTF16("g11"));
@@ -159,7 +160,7 @@
profile.SetID(L"id");
profile.CreateBookmarkModel(false);
profile.BlockUntilBookmarkModelLoaded();
- BookmarkModel* model = profile.GetBookmarkModel();
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(&profile);
const BookmarkNode* root = model->bookmark_bar_node();
const BookmarkNode* folder = model->AddFolder(root, 0, ASCIIToUTF16("g1"));
@@ -198,7 +199,7 @@
profile.SetID(L"id");
profile.CreateBookmarkModel(false);
profile.BlockUntilBookmarkModelLoaded();
- BookmarkModel* model = profile.GetBookmarkModel();
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(&profile);
const BookmarkNode* root = model->bookmark_bar_node();
const BookmarkNode* folder = model->AddFolder(root, 0, ASCIIToUTF16("g1"));
« no previous file with comments | « chrome/browser/bookmarks/bookmark_node_data.cc ('k') | chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698