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

Unified Diff: chrome/browser/ui/tab_helpers.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
Index: chrome/browser/ui/tab_helpers.cc
diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
index d46da69da6bf4dc5b7f77b28f4dd85c0f470490a..3aad1e61448c6e00cc53f43d0335595772ce7839 100644
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -188,9 +188,8 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
#if BUILDFLAG(ANDROID_JAVA_UI)
banners::AppBannerManagerAndroid::CreateForWebContents(web_contents);
BookmarkLastVisitUpdater::CreateForWebContentsWithBookmarkModel(
- web_contents,
- BookmarkModelFactory::GetForProfile(
- Profile::FromBrowserContext(web_contents->GetBrowserContext())));
+ web_contents, BookmarkModelFactory::GetForBrowserContext(
+ web_contents->GetBrowserContext()));
ContextMenuHelper::CreateForWebContents(web_contents);
DataUseTabHelper::CreateForWebContents(web_contents);

Powered by Google App Engine
This is Rietveld 408576698