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

Unified Diff: chrome/browser/history/android/bookmark_model_sql_handler.cc

Issue 10843018: 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/history/android/bookmark_model_sql_handler.cc
===================================================================
--- chrome/browser/history/android/bookmark_model_sql_handler.cc (revision 149222)
+++ chrome/browser/history/android/bookmark_model_sql_handler.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/bookmarks/bookmark_service.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/history/url_database.h"
@@ -84,7 +85,7 @@
Profile* profile = ProfileManager::GetLastUsedProfile();
if (!profile)
return NULL;
- return profile->GetBookmarkModel();
+ return BookmarkModelFactory::GetForProfile(profile);
}
BookmarkModelSQLHandler::BookmarkModelSQLHandler(

Powered by Google App Engine
This is Rietveld 408576698