Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Issue 2751093003: Unifies the additional actions for Categories (Closed)

Created:
3 years, 9 months ago by gambard
Modified:
3 years, 9 months ago
Reviewers:
Marc Treib, dgn
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unifies the additional actions for Categories The Categories can have an additional action, fetch or view all. For now they are represented as two different bool. It is unclear if they can be set at the same time or not. They are also display on the UI with the same text "More". This CL creates a new API to expose them. BUG=none Review-Url: https://codereview.chromium.org/2751093003 Cr-Commit-Position: refs/heads/master@{#457785} Committed: https://chromium.googlesource.com/chromium/src/+/db135527d8e98d22bbd95f3d9f79ad2d7ea9fc7e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move to the enum #

Patch Set 3 : Fix tests #

Patch Set 4 : Fix additional tests #

Patch Set 5 : Fix test, again #

Patch Set 6 : Fix java #

Total comments: 4

Patch Set 7 : Address comments #

Total comments: 4

Patch Set 8 : Address comments #

Patch Set 9 : Fix compilation on Android (hopefully) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -89 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/android/ntp/ntp_snippets_bridge.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ntp_snippets/download_suggestions_provider.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M components/ntp_snippets/category_info.h View 1 2 3 4 5 6 7 3 chunks +20 lines, -12 lines 0 comments Download
M components/ntp_snippets/category_info.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M components/ntp_snippets/mock_content_suggestions_provider.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M components/ntp_snippets/offline_pages/recent_tab_suggestions_provider_unittest.cc View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M components/ntp_snippets/remote/json_request.cc View 1 2 3 4 5 6 1 chunk +0 lines, -26 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_fetcher.cc View 1 2 3 1 chunk +7 lines, -5 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_fetcher_unittest.cc View 1 2 3 3 chunks +6 lines, -9 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_impl.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_impl_unittest.cc View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm View 1 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 47 (31 generated)
gambard
For discussion, what do you think of this API change? The UI will still decide ...
3 years, 9 months ago (2017-03-15 13:45:44 UTC) #2
dgn
Thanks for the suggestion! I'd be in favour of it. We already map to a ...
3 years, 9 months ago (2017-03-15 13:56:03 UTC) #3
gambard
https://codereview.chromium.org/2751093003/diff/1/components/ntp_snippets/category_info.h File components/ntp_snippets/category_info.h (right): https://codereview.chromium.org/2751093003/diff/1/components/ntp_snippets/category_info.h#newcode33 components/ntp_snippets/category_info.h:33: OPEN_ALL On 2017/03/15 13:56:02, dgn wrote: > nit: current ...
3 years, 9 months ago (2017-03-15 13:59:51 UTC) #4
Marc Treib
At some point in the past, there was a design where a section could have ...
3 years, 9 months ago (2017-03-15 14:33:56 UTC) #5
Marc Treib
Re "View all" vs "Open all": I guess "open" is slightly clearer, but IMO the ...
3 years, 9 months ago (2017-03-15 14:37:14 UTC) #6
gambard
Thanks, so we keep ViewAll but we move to an enum. dgn@, I have never ...
3 years, 9 months ago (2017-03-16 15:54:55 UTC) #7
dgn
On 2017/03/16 15:54:55, gambard wrote: > Thanks, so we keep ViewAll but we move to ...
3 years, 9 months ago (2017-03-16 16:43:19 UTC) #8
gambard
PTAL. The rest of the Java will need to be modified accordingly.
3 years, 9 months ago (2017-03-17 12:17:11 UTC) #30
Marc Treib
components/ntp_snippets/ lgtm with some comments/requests for things that aren't your fault :) https://codereview.chromium.org/2751093003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java ...
3 years, 9 months ago (2017-03-17 12:31:33 UTC) #31
gambard
Thanks! https://codereview.chromium.org/2751093003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java (right): https://codereview.chromium.org/2751093003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java#newcode293 chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java:293: int cardLayout, @ContentSuggestionsAdditionalActionEnum int additionalAction, On 2017/03/17 12:31:33, ...
3 years, 9 months ago (2017-03-17 13:40:11 UTC) #33
dgn
lgtm % comments https://codereview.chromium.org/2751093003/diff/120001/components/ntp_snippets/category_info.h File components/ntp_snippets/category_info.h (right): https://codereview.chromium.org/2751093003/diff/120001/components/ntp_snippets/category_info.h#newcode24 components/ntp_snippets/category_info.h:24: // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.ntp.snippets I'd prefer if ...
3 years, 9 months ago (2017-03-17 13:45:27 UTC) #35
gambard
Thanks! https://codereview.chromium.org/2751093003/diff/120001/components/ntp_snippets/category_info.h File components/ntp_snippets/category_info.h (right): https://codereview.chromium.org/2751093003/diff/120001/components/ntp_snippets/category_info.h#newcode24 components/ntp_snippets/category_info.h:24: // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.ntp.snippets On 2017/03/17 13:45:27, dgn wrote: ...
3 years, 9 months ago (2017-03-17 14:05:08 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2751093003/140001
3 years, 9 months ago (2017-03-17 14:05:27 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/252509)
3 years, 9 months ago (2017-03-17 14:28:02 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2751093003/160001
3 years, 9 months ago (2017-03-17 15:18:23 UTC) #44
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 16:07:51 UTC) #47
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/db135527d8e98d22bbd95f3d9f79...

Powered by Google App Engine
This is Rietveld 408576698