DescriptionImplement first version of OfflinePageSuggestionsProvider
Implement a ContentSuggestionsProvider that reads from the
OfflinePageModel, converts to ContentSuggestions and provides those to
the ContentSuggestionsService. Add a chrome-flag to enable the provider
and implement a factory that registers the provider with the service.
The implementation is not usable by users, yet, because extraction of
title, snippet text and image is not implemented. Those fields are
filled with dummy data or left empty. Deduplication, sorting and
discarding are also not implemented.
But the OfflinePageSuggestionsProvider serves as an example for other
ContentSuggestionsProvider implementations and it can be used to test
multiple-section UI implementations.
BUG=628198
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation;master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/5044dec1802c333acca98268df660ccee3ddbd8d
Cr-Commit-Position: refs/heads/master@{#406028}
Patch Set 1 #
Total comments: 47
Patch Set 2 : Move the factory to c/b/android/ntp and Marc's comments #
Total comments: 19
Patch Set 3 : Marc's new comments #Patch Set 4 : Small fixes #
Total comments: 20
Patch Set 5 : Marc's, Justin's and Bernhard's comments #
Total comments: 2
Patch Set 6 : Remove separate build target for offline_page_suggestions #Dependent Patchsets: Messages
Total messages: 34 (10 generated)
|