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

Unified Diff: chrome/browser/android/provider/chrome_browser_provider.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/android/provider/chrome_browser_provider.cc
diff --git a/chrome/browser/android/provider/chrome_browser_provider.cc b/chrome/browser/android/provider/chrome_browser_provider.cc
index 2d70930bd6a0f26e507d578221693e74385ae9e4..e1cda598f91419d2c47ec0b2f4812d3ed0d04a40 100644
--- a/chrome/browser/android/provider/chrome_browser_provider.cc
+++ b/chrome/browser/android/provider/chrome_browser_provider.cc
@@ -825,7 +825,7 @@ ChromeBrowserProvider::ChromeBrowserProvider(JNIEnv* env, jobject obj)
handling_extensive_changes_(false) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
profile_ = g_browser_process->profile_manager()->GetLastUsedProfile();
- bookmark_model_ = BookmarkModelFactory::GetForProfile(profile_);
+ bookmark_model_ = BookmarkModelFactory::GetForBrowserContext(profile_);
top_sites_ = TopSitesFactory::GetForProfile(profile_);
favicon_service_ = FaviconServiceFactory::GetForProfile(
profile_, ServiceAccessType::EXPLICIT_ACCESS),

Powered by Google App Engine
This is Rietveld 408576698