|
|
Combine all suggestions factories into ContentSuggestionsServiceFactory
Remove the NTPSnippetsServiceObserver and its uses.
Change ContentSuggestionsProviders to be owned by the
ContentSuggestionsService instead of having their own lifecycle as a
KeyedService. Change RegisterProvider() and Shutdown() behavior for
the service and the providers.
Remove NTPSnippetsServiceFactory and its uses in the SnippetsBridge.
Remove OfflinePageSuggestionsProviderFactory.
Expose the NTPSnippetsService to the snippets-internals through the
ContentSuggestionsService.
Adjust unit tests.
BUG= 633139
Committed: https://crrev.com/5728f0895e82f74b307d39db57099a5197ebfeb0
Cr-Commit-Position: refs/heads/master@{#409556}
Total comments: 37
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+315 lines, -728 lines) |
Patch |
 |
M |
chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
View
|
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/android/ntp/offline_page_suggestions_provider_factory.h
|
View
|
|
1 chunk |
+0 lines, -46 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/android/ntp/offline_page_suggestions_provider_factory.cc
|
View
|
|
1 chunk |
+0 lines, -76 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+116 lines, -10 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ntp_snippets/ntp_snippets_service_factory.h
|
View
|
|
1 chunk |
+0 lines, -44 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
|
View
|
|
1 chunk |
+0 lines, -139 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_manager.cc
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/snippets_internals_message_handler.h
|
View
|
|
3 chunks |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/snippets_internals_message_handler.cc
|
View
|
|
4 chunks |
+7 lines, -23 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_provider.h
|
View
|
|
4 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_provider.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service.h
|
View
|
1
2
|
7 chunks |
+24 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service.cc
|
View
|
1
2
|
3 chunks |
+10 lines, -28 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service_unittest.cc
|
View
|
|
15 chunks |
+44 lines, -103 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_service.h
|
View
|
1
2
3
4
5
6
7
8
|
9 chunks |
+22 lines, -61 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_service.cc
|
View
|
1
2
3
4
5
6
|
13 chunks |
+15 lines, -58 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_service_unittest.cc
|
View
|
1
2
3
|
13 chunks |
+50 lines, -67 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h
|
View
|
|
3 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc
|
View
|
|
5 chunks |
+7 lines, -20 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 22 (6 generated)
|