|
Change NTPSnippetsBridge to read from ContentSuggestionsService
Change the NTPSnippetsBridge to receive ContentSuggestions from the new
ContentSuggestionsService instead of receiving NTPSnippets directly
from the NTPSnippetsService. Change the bridge/UI to receive and handle
the ContentSuggestionsCategoryStatus instead of the state and
DisabledReason from the NTPSnippetsStatusService.
Modify the implementations of NTPSnippetsService
::DiscardSuggestion and ::FetchSuggestionImage to accept
combined unique_ids instead of within_category_ids, which they
wrongly accepted before. The new implementations conform to
the ContentSuggestionsProvider interface and these two methods
should not be called directly on the NTPSnippetsService with
an ID of a NTPSnippet anymore (as it would now fail).
BUG= 619560
Committed: https://crrev.com/27632ab6ad198cc8aceec6d50930bea0c2d8faef
Cr-Commit-Position: refs/heads/master@{#407441}
Total comments: 12
Total comments: 15
Total comments: 16
Total comments: 2
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+239 lines, -140 lines) |
Patch |
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapter.java
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/StatusListItem.java
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+84 lines, -23 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleListItem.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+22 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/ntp/ntp_snippets_bridge.h
|
View
|
1
2
3
4
|
4 chunks |
+19 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
View
|
1
2
3
4
|
9 chunks |
+39 lines, -33 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestion.h
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_category_status.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_category_status.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service.h
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service.cc
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_service.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_service.cc
|
View
|
1
2
3
4
|
5 chunks |
+14 lines, -11 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_service_unittest.cc
|
View
|
1
2
3
4
|
5 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_status_service.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 36 (11 generated)
|