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

Issue 2794313002: [Remote suggestions] Prioritize wifi for soft fetches. (Closed)

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

Description

[Remote suggestions] Prioritize wifi for soft fetches. This CL allows to set different intervals for soft fetches for wifi and fallback connections. This puts soft fetches on par to persistent fetches with respect to parameters. Previously we prioritized soft fetches triggered by NTP_OPENED. This feature is removed by this CL for the sake of simplicity (NTP_OPENED is the only trigger that we employ on M57 Stable). BUG=708146 Review-Url: https://codereview.chromium.org/2794313002 Cr-Commit-Position: refs/heads/master@{#462937} Committed: https://chromium.googlesource.com/chromium/src/+/2f06179869a269f69f4e10505afa82edd2a6fe81

Patch Set 1 #

Patch Set 2 : Minor polish #

Total comments: 21

Patch Set 3 : Marc's comments #

Total comments: 4

Patch Set 4 : Marc's nits #

Patch Set 5 : Rebase #

Total comments: 2

Patch Set 6 : Fix an error in rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -146 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsLauncher.java View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/android/ntp/ntp_snippets_launcher.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/ntp/ntp_snippets_launcher.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M components/ntp_snippets/pref_names.h View 1 chunk +5 lines, -4 lines 0 comments Download
M components/ntp_snippets/pref_names.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M components/ntp_snippets/remote/persistent_scheduler.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h View 1 2 3 chunks +8 lines, -9 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc View 1 2 3 14 chunks +82 lines, -81 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_scheduler_impl_unittest.cc View 1 2 3 9 chunks +112 lines, -48 lines 0 comments Download

Messages

Total messages: 34 (22 generated)
jkrcal
Marc, could you PTAL?
3 years, 8 months ago (2017-04-04 13:14:49 UTC) #2
Marc Treib
https://codereview.chromium.org/2794313002/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc File components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc (left): https://codereview.chromium.org/2794313002/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#oldcode65 components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc:65: "soft_on_ntp_opened_interval_hours-rare_ntp_user"}; Removing the existing params means we'll have to ...
3 years, 8 months ago (2017-04-04 13:28:16 UTC) #5
jkrcal
Thanks, Marc! PTAL, again. https://codereview.chromium.org/2794313002/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc File components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc (left): https://codereview.chromium.org/2794313002/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#oldcode65 components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc:65: "soft_on_ntp_opened_interval_hours-rare_ntp_user"}; On 2017/04/04 13:28:15, Marc ...
3 years, 8 months ago (2017-04-05 17:32:57 UTC) #8
Marc Treib
lgtm Thanks! https://codereview.chromium.org/2794313002/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc File components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc (right): https://codereview.chromium.org/2794313002/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#newcode55 components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc:55: const double kDefaultFetchingIntervalHoursActiveNtpUser[] = {24.0, 6.0, 4.0, ...
3 years, 8 months ago (2017-04-06 08:29:23 UTC) #9
jkrcal
Thanks! https://codereview.chromium.org/2794313002/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc File components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc (right): https://codereview.chromium.org/2794313002/diff/20001/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc#newcode55 components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc:55: const double kDefaultFetchingIntervalHoursActiveNtpUser[] = {24.0, 6.0, 4.0, On ...
3 years, 8 months ago (2017-04-06 12:04:08 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/2794313002/60001
3 years, 8 months ago (2017-04-06 14:15:55 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/404319)
3 years, 8 months ago (2017-04-06 14:22:50 UTC) #19
jkrcal
Peter, could you PTAL at .java?
3 years, 8 months ago (2017-04-06 15:07:41 UTC) #21
Michael van Ouwerkerk
lgtm https://codereview.chromium.org/2794313002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsLauncher.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsLauncher.java (right): https://codereview.chromium.org/2794313002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsLauncher.java#newcode171 chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsLauncher.java:171: public boolean isOnUnmeteredConnection() { This functionality looks fine, ...
3 years, 8 months ago (2017-04-07 16:11:11 UTC) #27
jkrcal
Thanks, Michael! https://codereview.chromium.org/2794313002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsLauncher.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsLauncher.java (right): https://codereview.chromium.org/2794313002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsLauncher.java#newcode171 chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsLauncher.java:171: public boolean isOnUnmeteredConnection() { On 2017/04/07 16:11:11, ...
3 years, 8 months ago (2017-04-07 16:26:19 UTC) #28
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/2794313002/100001
3 years, 8 months ago (2017-04-07 16:36:40 UTC) #31
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 18:38:07 UTC) #34
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/2f06179869a269f69f4e10505afa...

Powered by Google App Engine
This is Rietveld 408576698