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

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: Eliminate Profile::FromBrowserContext in some places 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 32746fbcabe0d40d6a3e3d740c05da7db6651c09..f9db56038ef109291e81b7d9ef019d6ceb258703 100644
--- a/chrome/browser/android/provider/chrome_browser_provider.cc
+++ b/chrome/browser/android/provider/chrome_browser_provider.cc
@@ -824,7 +824,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