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

Issue 2726883002: [Doodle] Replace the expiry_date in DoodleConfig by time_to_live (Closed)

Created:
3 years, 9 months ago by Marc Treib
Modified:
3 years, 9 months ago
Reviewers:
fhorschig, mastiz
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Doodle] Replace the expiry_date in DoodleConfig by time_to_live The service will require both Time (for persisting) and TimeTicks (for scheduling), so better to just pass the TimeDelta. It also makes the fetcher nicer (no need for injectable clock). In a later follow-up, I'll move the ttl out of DoodleConfig (and instead pass it as a separate param to DoodleFetcher::FinishedCallback). BUG=690467 Review-Url: https://codereview.chromium.org/2726883002 Cr-Commit-Position: refs/heads/master@{#454254} Committed: https://chromium.googlesource.com/chromium/src/+/d83555d59cc6dba31282c95cd402ebbcdc42d016

Patch Set 1 #

Total comments: 11

Patch Set 2 : review #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -39 lines) Patch
M components/doodle/doodle_fetcher_impl.h View 3 chunks +0 lines, -9 lines 0 comments Download
M components/doodle/doodle_fetcher_impl.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M components/doodle/doodle_fetcher_impl_unittest.cc View 1 7 chunks +12 lines, -20 lines 0 comments Download
M components/doodle/doodle_types.h View 1 chunk +1 line, -1 line 0 comments Download
M components/doodle/doodle_types.cc View 1 1 chunk +3 lines, -4 lines 2 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (13 generated)
Marc Treib
PTAL!
3 years, 9 months ago (2017-03-01 14:44:29 UTC) #4
fhorschig
TTL seems much more reasonable. Especially because we can move the expiry logic out. https://codereview.chromium.org/2726883002/diff/1/components/doodle/doodle_fetcher_impl.cc ...
3 years, 9 months ago (2017-03-01 15:40:53 UTC) #7
Marc Treib
Thanks! TTL is reasonable from the fetcher's POV, but unfortunately it's completely out of place ...
3 years, 9 months ago (2017-03-02 09:28:03 UTC) #8
fhorschig
lgtm https://codereview.chromium.org/2726883002/diff/1/components/doodle/doodle_fetcher_impl_unittest.cc File components/doodle/doodle_fetcher_impl_unittest.cc (right): https://codereview.chromium.org/2726883002/diff/1/components/doodle/doodle_fetcher_impl_unittest.cc#newcode245 components/doodle/doodle_fetcher_impl_unittest.cc:245: TEST_F(DoodleFetcherImplTest, DoodleExpiresNowWithNegativeTTL) { On 2017/03/02 09:28:02, Marc Treib ...
3 years, 9 months ago (2017-03-02 10:35:13 UTC) #9
Marc Treib
Thanks! +mastiz: Can I get a committer stamp, please? :)
3 years, 9 months ago (2017-03-02 10:41:22 UTC) #11
mastiz
LGTM. https://codereview.chromium.org/2726883002/diff/20001/components/doodle/doodle_types.cc File components/doodle/doodle_types.cc (right): https://codereview.chromium.org/2726883002/diff/20001/components/doodle/doodle_types.cc#newcode21 components/doodle/doodle_types.cc:21: // the first place. Nit: it's not obvious ...
3 years, 9 months ago (2017-03-02 13:50:14 UTC) #16
Marc Treib
Thanks! https://codereview.chromium.org/2726883002/diff/20001/components/doodle/doodle_types.cc File components/doodle/doodle_types.cc (right): https://codereview.chromium.org/2726883002/diff/20001/components/doodle/doodle_types.cc#newcode21 components/doodle/doodle_types.cc:21: // the first place. On 2017/03/02 13:50:13, mastiz ...
3 years, 9 months ago (2017-03-02 13:53:04 UTC) #17
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/2726883002/20001
3 years, 9 months ago (2017-03-02 13:53:30 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 13:59:51 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d83555d59cc6dba31282c95cd402...

Powered by Google App Engine
This is Rietveld 408576698