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

Unified Diff: chrome/browser/history/android/bookmark_model_sql_handler.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/history/android/bookmark_model_sql_handler.cc
diff --git a/chrome/browser/history/android/bookmark_model_sql_handler.cc b/chrome/browser/history/android/bookmark_model_sql_handler.cc
index 37537434290785834236653170d8a2102094c462..3eba981df791dc59debf8690739ac2c0e5e898e7 100644
--- a/chrome/browser/history/android/bookmark_model_sql_handler.cc
+++ b/chrome/browser/history/android/bookmark_model_sql_handler.cc
@@ -88,7 +88,7 @@ BookmarkModel* BookmarkModelSQLHandler::Task::GetBookmarkModel() {
Profile* profile = ProfileManager::GetLastUsedProfile();
if (!profile)
return NULL;
- return BookmarkModelFactory::GetForProfile(profile);
+ return BookmarkModelFactory::GetForBrowserContext(profile);
}
BookmarkModelSQLHandler::BookmarkModelSQLHandler(

Powered by Google App Engine
This is Rietveld 408576698