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

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

Issue 2216713002: Use BookmarkModelFactory::GetForBrowserContext everywhere (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks
Patch Set: Replace in .mm files Created 4 years, 4 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
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_drag_drop.cc ('k') | chrome/browser/ui/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
diff --git a/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
index 32e65e2ac5e821453f4033861c42c0f0242f5b6f..ce60bdd05efba2dd0530124f32adcb479e122246 100644
--- a/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
@@ -76,9 +76,8 @@ BookmarkTabHelper::BookmarkTabHelper(content::WebContents* web_contents)
bookmark_model_(NULL),
delegate_(NULL),
bookmark_drag_(NULL) {
- Profile* profile =
- Profile::FromBrowserContext(web_contents->GetBrowserContext());
- bookmark_model_ = BookmarkModelFactory::GetForProfile(profile);
+ bookmark_model_ = BookmarkModelFactory::GetForBrowserContext(
+ web_contents->GetBrowserContext());
if (bookmark_model_)
bookmark_model_->AddObserver(this);
}
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_drag_drop.cc ('k') | chrome/browser/ui/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698