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

Issue 2363753002: [NTP Snippets] Don't reschedule background fetching on every startup (Closed)

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

Description

[NTP Snippets] Don't reschedule background fetching on every startup Instead, store the currently-scheduled intervals in prefs, and only reschedule when something changed. BUG=646842 Committed: https://crrev.com/990b825d970ab5998c535d36666365105bc4acd7 Cr-Commit-Position: refs/heads/master@{#421158}

Patch Set 1 #

Total comments: 6

Patch Set 2 : comment #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -23 lines) Patch
M chrome/browser/android/ntp/ntp_snippets_bridge.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 4 chunks +33 lines, -14 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 2 5 chunks +46 lines, -5 lines 0 comments Download
M components/ntp_snippets/pref_names.h View 1 chunk +7 lines, -0 lines 0 comments Download
M components/ntp_snippets/pref_names.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 15 (8 generated)
Marc Treib
PTAL!
4 years, 3 months ago (2016-09-22 16:30:13 UTC) #2
jkrcal
https://codereview.chromium.org/2363753002/diff/1/chrome/browser/android/ntp/ntp_snippets_bridge.cc File chrome/browser/android/ntp/ntp_snippets_bridge.cc (right): https://codereview.chromium.org/2363753002/diff/1/chrome/browser/android/ntp/ntp_snippets_bridge.cc#newcode95 chrome/browser/android/ntp/ntp_snippets_bridge.cc:95: // Reschedules the fetching of snippets. Maybe expanding the ...
4 years, 3 months ago (2016-09-23 10:28:34 UTC) #3
Marc Treib
https://codereview.chromium.org/2363753002/diff/1/chrome/browser/android/ntp/ntp_snippets_bridge.cc File chrome/browser/android/ntp/ntp_snippets_bridge.cc (right): https://codereview.chromium.org/2363753002/diff/1/chrome/browser/android/ntp/ntp_snippets_bridge.cc#newcode95 chrome/browser/android/ntp/ntp_snippets_bridge.cc:95: // Reschedules the fetching of snippets. On 2016/09/23 10:28:34, ...
4 years, 3 months ago (2016-09-23 11:19:13 UTC) #4
jkrcal
lgtm, thanks! (and sorry for the delay before the first review) https://codereview.chromium.org/2363753002/diff/1/chrome/browser/android/ntp/ntp_snippets_bridge.cc File chrome/browser/android/ntp/ntp_snippets_bridge.cc (right): ...
4 years, 3 months ago (2016-09-23 11:24:54 UTC) #5
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/2363753002/40001
4 years, 2 months ago (2016-09-27 09:28:49 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-27 09:33:36 UTC) #13
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 09:35:09 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/990b825d970ab5998c535d36666365105bc4acd7
Cr-Commit-Position: refs/heads/master@{#421158}

Powered by Google App Engine
This is Rietveld 408576698