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); |
} |