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

Issue 2611523004: [Background fetching] Background fetching when opening an NTP. (Closed)

Created:
3 years, 11 months ago by jkrcal
Modified:
3 years, 11 months ago
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Background fetching] Background fetching when opening an NTP. This CL implements the most prominent soft background fetching trigger. Whenever a new NTP is opened, we check whether a pre-specified time has elapsed since the last successful fetch (+ a random jitter). Both the minimum fetching frequency and the random jitter are controlled by variation parameters. BUG=672479 Committed: https://crrev.com/4d65d6bf235aa53c08304ebae6d39837e694d73f Cr-Commit-Position: refs/heads/master@{#441619}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Tim's comments #

Total comments: 2

Patch Set 3 : Tim's comments + unit-tests #

Total comments: 28

Patch Set 4 : Tim's comments #

Patch Set 5 : Rebase #

Messages

Total messages: 38 (20 generated)
jkrcal
Tim, could you PTAL? I plan to add unit-tests in an hour or so in ...
3 years, 11 months ago (2017-01-03 14:02:09 UTC) #2
tschumann
https://codereview.chromium.org/2611523004/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc File components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc (right): https://codereview.chromium.org/2611523004/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode28 components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc:28: SOFT_ACTIVE, hmm... what about: 'SOFT_ON_USAGE_EVENT' or just 'ON_USAGE_EVENT'? We ...
3 years, 11 months ago (2017-01-03 14:35:04 UTC) #3
jkrcal
(adding Friedrich to keep him updated)
3 years, 11 months ago (2017-01-03 14:45:59 UTC) #5
tschumann
https://codereview.chromium.org/2611523004/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc File components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc (right): https://codereview.chromium.org/2611523004/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode166 components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc:166: RefetchInTheBackground(nullptr); please add /*callback=*/nullptr to document the parameter. Same ...
3 years, 11 months ago (2017-01-03 15:16:13 UTC) #6
jkrcal
Addressed your comments. Did not make it through unit-tests, yet. https://codereview.chromium.org/2611523004/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc File components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc (right): https://codereview.chromium.org/2611523004/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode28 ...
3 years, 11 months ago (2017-01-03 18:36:04 UTC) #7
tschumann
https://codereview.chromium.org/2611523004/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc File components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc (right): https://codereview.chromium.org/2611523004/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode377 components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc:377: if (!pref_service_->HasPrefPath(prefs::kSnippetNextActiveSoftFetch)) { On 2017/01/03 18:36:04, jkrcal wrote: > ...
3 years, 11 months ago (2017-01-03 18:54:25 UTC) #8
jkrcal
Tim, unit-tests have arrived! PTAL. https://codereview.chromium.org/2611523004/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc File components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc (right): https://codereview.chromium.org/2611523004/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode377 components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc:377: if (!pref_service_->HasPrefPath(prefs::kSnippetNextActiveSoftFetch)) { On ...
3 years, 11 months ago (2017-01-04 10:06:30 UTC) #11
tschumann
nice! https://codereview.chromium.org/2611523004/diff/40001/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc File components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc (right): https://codereview.chromium.org/2611523004/diff/40001/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode168 components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc:168: void SchedulingRemoteSuggestionsProvider::RescheduleFetching() { ultimatively, this method should go ...
3 years, 11 months ago (2017-01-04 10:43:52 UTC) #12
jkrcal
Éric, could you PTAL at the iOS factory? Tim, PTAL, again! https://codereview.chromium.org/2611523004/diff/40001/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc File components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc (right): ...
3 years, 11 months ago (2017-01-04 14:19:04 UTC) #16
noyau (Ping after 24h)
ios lgtm
3 years, 11 months ago (2017-01-04 15:08:16 UTC) #19
tschumann
lgtm https://codereview.chromium.org/2611523004/diff/40001/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc File components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc (right): https://codereview.chromium.org/2611523004/diff/40001/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode168 components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc:168: void SchedulingRemoteSuggestionsProvider::RescheduleFetching() { On 2017/01/04 14:19:03, jkrcal wrote: ...
3 years, 11 months ago (2017-01-04 15:15:24 UTC) #22
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/2611523004/60001
3 years, 11 months ago (2017-01-04 15:26:01 UTC) #24
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ntp_snippets/content_suggestions_service_factory.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-04 15:30:04 UTC) #26
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/2611523004/60001
3 years, 11 months ago (2017-01-04 16:50:40 UTC) #28
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ntp_snippets/content_suggestions_service_factory.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-04 16:54:46 UTC) #30
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/2611523004/80001
3 years, 11 months ago (2017-01-05 10:02:19 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 11 months ago (2017-01-05 10:43:37 UTC) #36
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 10:46:09 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4d65d6bf235aa53c08304ebae6d39837e694d73f
Cr-Commit-Position: refs/heads/master@{#441619}

Powered by Google App Engine
This is Rietveld 408576698