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

Unified Diff: chrome/browser/bookmarks/bookmark_node_data.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.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_node_data.cc (revision 149452)
+++ chrome/browser/bookmarks/bookmark_node_data.cc (working copy)
@@ -11,6 +11,7 @@
#include "base/string_util.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"
#include "chrome/common/url_constants.h"
#include "net/base/escape.h"
@@ -319,8 +320,8 @@
return nodes;
for (size_t i = 0; i < elements.size(); ++i) {
- const BookmarkNode* node =
- profile->GetBookmarkModel()->GetNodeByID(elements[i].id_);
+ const BookmarkNode* node = BookmarkModelFactory::GetForProfile(
+ profile)->GetNodeByID(elements[i].id_);
if (!node) {
nodes.clear();
return nodes;
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_node_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698