|
|
[NTP Client] Let the backend trigger sign in related refreshes
The detection of when to trigger a refresh after a sign in had
a few issues:
- If the signin promo was dismissed, we would not do it
- We would not refresh on sign out because we ignore NOT_PROVIDED
state changes
- The order of the refresh between the UI and the backend was
not explictly defined, meaning we could start refreshing the UI too
early if the SignInManager changed.
BUG= 657936
Committed: https://crrev.com/f5708892a89abfb09a81a1c8198f134c42d22010
Cr-Commit-Position: refs/heads/master@{#433830}
Total comments: 22
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+132 lines, -46 lines) |
Patch |
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapter.java
|
View
|
1
2
3
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SignInPromo.java
|
View
|
|
3 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/ntp/ntp_snippets_bridge.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/snippets_internals_message_handler.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/snippets_internals_message_handler.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_provider.h
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service.h
|
View
|
1
|
7 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service.cc
|
View
|
1
2
3
|
3 chunks |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/content_suggestions_service_unittest.cc
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/remote/ntp_snippets_status_service.h
|
View
|
1
|
5 chunks |
+8 lines, -14 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/remote/ntp_snippets_status_service.cc
|
View
|
1
2
3
|
4 chunks |
+5 lines, -13 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/remote/remote_suggestions_provider.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/remote/remote_suggestions_provider.cc
|
View
|
1
2
3
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 30 (18 generated)
|