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

Issue 2626433005: [Background fetching] Configure and report fetching triggers (Closed)

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

Description

[Background fetching] Configure and report fetching triggers This CL enables configuring which trigger types result in a background fetch. The default configuration can be overridden by a variation parameter. It also reports the trigger type of each fetch to UMA. Additionally, this CL enables two additional trigger types that were previously inactive (Chrome cold start / Chrome foregrounding). BUG=672479 Review-Url: https://codereview.chromium.org/2626433005 Cr-Commit-Position: refs/heads/master@{#443272} Committed: https://chromium.googlesource.com/chromium/src/+/ffa982507bece3662d3b48dd73f8b1c1b85999f2

Patch Set 1 #

Total comments: 12

Patch Set 2 : Tim's comments #

Patch Set 3 : Minor fixes #

Total comments: 3

Patch Set 4 : Tim's comments #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -30 lines) Patch
M components/ntp_snippets/remote/scheduling_remote_suggestions_provider.h View 1 2 4 chunks +15 lines, -1 line 0 comments Download
M components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc View 1 8 chunks +103 lines, -12 lines 0 comments Download
M components/ntp_snippets/remote/scheduling_remote_suggestions_provider_unittest.cc View 1 2 3 8 chunks +124 lines, -17 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
jkrcal
Tim, could you PTAL? (no unit-tests yet, I want quick feedback)
3 years, 11 months ago (2017-01-10 10:17:15 UTC) #2
tschumann
overall looks good -- just some comments on implementation details. https://codereview.chromium.org/2626433005/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/2626433005/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode214 ...
3 years, 11 months ago (2017-01-10 14:28:16 UTC) #3
tschumann
https://codereview.chromium.org/2626433005/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2626433005/diff/1/tools/metrics/histograms/histograms.xml#newcode77625 tools/metrics/histograms/histograms.xml:77625: + <int value="2" label="Cold start of the browser"/> isn't ...
3 years, 11 months ago (2017-01-10 14:29:04 UTC) #4
jkrcal
Thanks! PTAL, again. https://codereview.chromium.org/2626433005/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/2626433005/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode214 components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc:214: if (!ShouldRefetchInTheBackgroundNow()) { On 2017/01/10 14:28:16, ...
3 years, 11 months ago (2017-01-10 18:52:27 UTC) #5
tschumann
lgtm https://codereview.chromium.org/2626433005/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/2626433005/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode494 components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc:494: "Fill in names for trigger types."); On 2017/01/10 ...
3 years, 11 months ago (2017-01-12 12:44:20 UTC) #6
jkrcal
https://codereview.chromium.org/2626433005/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/2626433005/diff/1/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc#newcode494 components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc:494: "Fill in names for trigger types."); On 2017/01/12 12:44:20, ...
3 years, 11 months ago (2017-01-12 15:35:28 UTC) #7
jkrcal
Robert, could you PTAL at histograms.xml?
3 years, 11 months ago (2017-01-12 15:36:11 UTC) #11
rkaplow
lgtm
3 years, 11 months ago (2017-01-12 16:49:41 UTC) #14
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/2626433005/60001
3 years, 11 months ago (2017-01-12 17:06:16 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 17:14:33 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ffa982507bece3662d3b48dd73f8...

Powered by Google App Engine
This is Rietveld 408576698