|
[NTP Snippets] The Status card reports disabled sync states
When there are no snippets to display, the Status card now
shows an appropriate message and action for the following
contexts:
- User is signed out
- User has disabled sync
- User has disabled history sync
- User has set a custom passphrase
The detection of those states is done by the newly added
NTPSnippetsStatusService.
Preview: https://goo.gl/photos/gpDA8g6Mm2jW56e87
BUG= 612508
Committed: https://crrev.com/bea29e22d8b64035f822e48b120691e751108539
Cr-Commit-Position: refs/heads/master@{#402537}
Total comments: 13
Total comments: 4
Total comments: 1
Total comments: 6
Total comments: 8
Total comments: 23
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+827 lines, -276 lines) |
Patch |
 |
M |
chrome/android/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/res/layout/new_tab_page_status_card.xml
|
View
|
1
2
|
3 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapter.java
|
View
|
1
2
3
|
7 chunks |
+28 lines, -7 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
8
|
1 chunk |
+160 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
|
View
|
1
2
|
4 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/preferences/SignInPreference.java
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/signin/AccountSigninActivity.java
|
View
|
1
2
3
|
3 chunks |
+21 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/strings/android_chrome_strings.grd
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/android/ntp/ntp_snippets_bridge.h
|
View
|
1
2
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
View
|
1
2
|
2 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/snippets_internals_message_handler.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/snippets_internals_message_handler.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/OWNERS
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/components_strings.grd
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/components_tests.gyp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_fetcher.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_service.h
|
View
|
1
2
3
4
5
6
7
8
9
|
10 chunks |
+24 lines, -42 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_service.cc
|
View
|
1
2
3
4
5
6
7
8
|
9 chunks |
+36 lines, -85 lines |
0 comments
|
Download
|
 |
M |
components/ntp_snippets/ntp_snippets_service_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
11 chunks |
+40 lines, -102 lines |
0 comments
|
Download
|
 |
A |
components/ntp_snippets/ntp_snippets_status_service.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+82 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/ntp_snippets/ntp_snippets_status_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+80 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/ntp_snippets/ntp_snippets_status_service_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+70 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/ntp_snippets/ntp_snippets_test_utils.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+68 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/ntp_snippets/ntp_snippets_test_utils.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/ntp_snippets_strings.grdp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
Total messages: 50 (20 generated)
|