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

Unified Diff: chrome/browser/bookmarks/bookmark_utils.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_utils.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_utils.cc (revision 149452)
+++ chrome/browser/bookmarks/bookmark_utils.cc (working copy)
@@ -16,6 +16,7 @@
#include "base/time.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/browser/history/query_parser.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -233,7 +234,7 @@
const BookmarkNodeData& data,
const BookmarkNode* parent_node,
int index) {
- BookmarkModel* model = profile->GetBookmarkModel();
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile);
if (data.IsFromProfile(profile)) {
const std::vector<const BookmarkNode*> dragged_nodes =
data.GetNodes(profile);

Powered by Google App Engine
This is Rietveld 408576698