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

Issue 2279483002: Allow category["suggestions"] to be absent. (Closed)

Created:
4 years, 4 months ago by sfiera
Modified:
4 years, 3 months ago
Reviewers:
Marc Treib, tschumann
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow category["suggestions"] to be absent. APIs do not return empty lists, apparently. If a repeated field is empty, then it will be absent in the JSON. Allow this, but make sure that the empty category is created first. Committed: https://crrev.com/90f20b329a00110db356c893dd01b8184d1c38cd Cr-Commit-Position: refs/heads/master@{#414402}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -3 lines) Patch
M components/ntp_snippets/ntp_snippets_fetcher.cc View 1 1 chunk +7 lines, -3 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher_unittest.cc View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
sfiera
Discovered in the course of the dismissal change, but figured it could be separate.
4 years, 4 months ago (2016-08-24 17:15:09 UTC) #4
tschumann
lgtm https://codereview.chromium.org/2279483002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2279483002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode548 components/ntp_snippets/ntp_snippets_fetcher.cc:548: if (!category_value->GetList("suggestions", &suggestions)) { let's document this case, ...
4 years, 4 months ago (2016-08-24 21:35:22 UTC) #8
Marc Treib
lgtm https://codereview.chromium.org/2279483002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2279483002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode540 components/ntp_snippets/ntp_snippets_fetcher.cc:540: const base::ListValue* suggestions = nullptr; nit: Move this ...
4 years, 3 months ago (2016-08-25 09:14:02 UTC) #9
sfiera
https://codereview.chromium.org/2279483002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2279483002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode540 components/ntp_snippets/ntp_snippets_fetcher.cc:540: const base::ListValue* suggestions = nullptr; On 2016/08/25 09:14:02, Marc ...
4 years, 3 months ago (2016-08-25 10:24:30 UTC) #10
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/2279483002/20001
4 years, 3 months ago (2016-08-25 10:25:06 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/268600)
4 years, 3 months ago (2016-08-25 11:24:21 UTC) #15
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/2279483002/20001
4 years, 3 months ago (2016-08-25 11:27:12 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-25 12:12:11 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 12:13:42 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/90f20b329a00110db356c893dd01b8184d1c38cd
Cr-Commit-Position: refs/heads/master@{#414402}

Powered by Google App Engine
This is Rietveld 408576698