Skip to content

Commit

Permalink
Remove the bookmark provider from ContentSuggestions
Browse files Browse the repository at this point in the history
The bookmarks are not currently part of ContentSuggestions on iOS.
This CL removes the provider from the ContentSuggestionsService used on iOS.

BUG=694159

Review-Url: https://codereview.chromium.org/2805703002
Cr-Commit-Position: refs/heads/master@{#462470}
  • Loading branch information
gambard authored and Commit bot committed Apr 6, 2017
1 parent c346deb commit 4f6e28e
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,6 @@ IOSChromeContentSuggestionsServiceFactory::BuildServiceInstanceFor(
prefs, std::move(category_ranker), std::move(user_classifier),
std::move(scheduler));

// Create the BookmarkSuggestionsProvider.
if (base::FeatureList::IsEnabled(ntp_snippets::kBookmarkSuggestionsFeature)) {
BookmarkModel* bookmark_model =
BookmarkModelFactory::GetForBrowserState(chrome_browser_state);
std::unique_ptr<BookmarkSuggestionsProvider> bookmark_suggestions_provider =
base::MakeUnique<BookmarkSuggestionsProvider>(service.get(),
bookmark_model, prefs);
service->RegisterProvider(std::move(bookmark_suggestions_provider));
}

// Create the ReadingListSuggestionsProvider.
ReadingListModel* reading_list_model =
ReadingListModelFactory::GetForBrowserState(chrome_browser_state);
Expand Down

0 comments on commit 4f6e28e

Please sign in to comment.