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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_tab_helper.cc

Issue 10831062: 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/bookmarks/bookmark_tab_helper.cc
===================================================================
--- chrome/browser/ui/bookmarks/bookmark_tab_helper.cc (revision 148782)
+++ chrome/browser/ui/bookmarks/bookmark_tab_helper.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/bookmarks/bookmark_tab_helper.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/profiles/profile.h"
#include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h"
@@ -105,7 +106,7 @@
void BookmarkTabHelper::UpdateStarredStateForCurrentURL() {
Profile* profile =
Profile::FromBrowserContext(web_contents()->GetBrowserContext());
- BookmarkModel* model = profile->GetBookmarkModel();
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile);
const bool old_state = is_starred_;
is_starred_ = (model && model->IsBookmarked(web_contents()->GetURL()));

Powered by Google App Engine
This is Rietveld 408576698