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

Issue 2387293009: Removes a data-dependent DCHECK(). (Closed)

Created:
4 years, 2 months ago by tschumann
Modified:
4 years, 2 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removes a data-dependent DCHECK(). This check actually triggered on the wrong condition (hence I also renamed a few things to reduce the confusion). There was a valid point for the check, though: we should only fill the histogram when we don't get too many snippets. Once we completely moved to the Zine cloud backend, this histogram should go away anyways. Committed: https://crrev.com/f1130eeefa4757a7b851bbdd9f61bca8cd211658 Cr-Commit-Position: refs/heads/master@{#423749}

Patch Set 1 #

Patch Set 2 : synced to head #

Total comments: 6

Patch Set 3 : review comments #

Patch Set 4 : fix build #

Patch Set 5 : merged to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -46 lines) Patch
M components/ntp_snippets/remote/ntp_snippets_fetcher.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher.cc View 1 2 3 4 9 chunks +19 lines, -14 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc View 1 2 3 4 4 chunks +22 lines, -18 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_service.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_service.cc View 1 2 3 4 4 chunks +11 lines, -10 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_service_unittest.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
tschumann
4 years, 2 months ago (2016-10-06 15:22:04 UTC) #2
Marc Treib
LGTM with a few nits, thanks! https://codereview.chromium.org/2387293009/diff/20001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2387293009/diff/20001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode147 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:147: if (!value->GetAsDictionary(&dict)) { ...
4 years, 2 months ago (2016-10-06 15:36:13 UTC) #5
chromium-reviews
On Thursday, October 6, 2016, <treib@chromium.org> wrote: > LGTM with a few nits, thanks! > ...
4 years, 2 months ago (2016-10-06 15:48:32 UTC) #6
Marc Treib
On 2016/10/06 15:48:32, chromium-reviews wrote: > On Thursday, October 6, 2016, <mailto:treib@chromium.org> wrote: > > ...
4 years, 2 months ago (2016-10-06 16:00:25 UTC) #7
tschumann
https://codereview.chromium.org/2387293009/diff/20001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2387293009/diff/20001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#newcode147 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:147: if (!value->GetAsDictionary(&dict)) { On 2016/10/06 15:36:13, Marc Treib wrote: ...
4 years, 2 months ago (2016-10-06 17:57:42 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/2387293009/40001
4 years, 2 months ago (2016-10-06 18:00:11 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/310041)
4 years, 2 months ago (2016-10-06 18:09:50 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/2387293009/60001
4 years, 2 months ago (2016-10-06 18:34:11 UTC) #18
commit-bot: I haz the power
Failed to apply patch for components/ntp_snippets/remote/ntp_snippets_fetcher.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-10-06 19:17:41 UTC) #20
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/2387293009/80001
4 years, 2 months ago (2016-10-06 23:17:24 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-07 00:04:15 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 00:10:46 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f1130eeefa4757a7b851bbdd9f61bca8cd211658
Cr-Commit-Position: refs/heads/master@{#423749}

Powered by Google App Engine
This is Rietveld 408576698