|
Refactor and extend SnippetsBridge for multi-section support
Add a category parameter to ContentSuggestionsService::Observer
::OnNewSuggestions. Add getters and observer events equivalent to the
ContentSuggestionsService to the SnippetsBridge. Adjust the UI layer to
use the new methods on the bridge. Modify the NewTabPageAdapterTest to
correctly mock the new bridge.
BUG= 635794
Committed: https://crrev.com/222d8a5248288b4bd3f059e25951dfbeb1f5af62
Cr-Commit-Position: refs/heads/master@{#411027}
Total comments: 45
Total comments: 2
Total comments: 2
Total comments: 6
Total comments: 12
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+451 lines, -282 lines) |
Patch |
 |
M |
chrome/android/java/res/layout/new_tab_page_snippets_header.xml
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapter.java
|
View
|
1
2
3
4
5
6
7
8
9
10
|
10 chunks |
+44 lines, -34 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageRecyclerView.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
A |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+38 lines, -0 lines |
2 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleViewHolder.java
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetHeaderListItem.java
|
View
|
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetHeaderViewHolder.java
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
|
View
|
1
2
3
4
5
|
5 chunks |
+57 lines, -42 lines |
0 comments
|
Download
|
 |
D |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsSource.java
|
View
|
|
1 chunk |
+0 lines, -55 lines |
0 comments
|
Download
|
 |
A |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+74 lines, -0 lines |
3 comments
|
Download
|
 |
M |
chrome/android/java_sources.gni
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java
|
View
|
1
2
3
4
5
6
7
8
9
10
|
13 chunks |
+63 lines, -32 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/ntp/ntp_snippets_bridge.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+33 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+84 lines, -67 lines |
2 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/snippets_internals_message_handler.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/snippets_internals_message_handler.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_provider.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service_unittest.cc
|
View
|
1
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 30 (7 generated)
|