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

Unified Diff: chrome/browser/ntp_snippets/content_suggestions_service_factory.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
« no previous file with comments | « chrome/browser/importer/profile_writer_unittest.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
diff --git a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
index 0dc8e0a2b728aaddf1ec4533f158b34ebdfeee9b..942343b808ea5ec37adbd8fa00d7c794a2c78bae 100644
--- a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
+++ b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
@@ -127,9 +127,8 @@ KeyedService* ContentSuggestionsServiceFactory::BuildServiceInstanceFor(
// Create the BookmarkSuggestionsProvider.
if (base::FeatureList::IsEnabled(
ntp_snippets::kBookmarkSuggestionsFeature)) {
- // TODO(pke): GetForBrowserContext
BookmarkModel* bookmark_model =
- BookmarkModelFactory::GetForProfile(profile);
+ BookmarkModelFactory::GetForBrowserContext(profile);
std::unique_ptr<BookmarkSuggestionsProvider> bookmark_suggestions_provider =
base::MakeUnique<BookmarkSuggestionsProvider>(
service, service->category_factory(), bookmark_model);
« no previous file with comments | « chrome/browser/importer/profile_writer_unittest.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698