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

Issue 2866013002: SuggestionsService: don't automatically fetch on startup (Closed)

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

Description

SuggestionsService: don't automatically fetch on startup Expected impact: - On mobile: Before, we would fetch during startup only if an NTP happened to be open, i.e. semi-randomly. Now we don't fetch at all. This might decrease tile freshness for the first NTP in some cases, but the difference should be minimal. - On desktop, without experiments: No impact, since this code isn't used. - On desktop, with NTPTilesInInstantService: Before, we'd always fetch during startup, after Sync finishes initialization. Like on mobile, this might decrease freshness in some cases, but only minimally. On both mobile and desktop, this will significantly reduce traffic to the server; see the bug for numbers. BUG=718845 Review-Url: https://codereview.chromium.org/2866013002 Cr-Commit-Position: refs/heads/master@{#469999} Committed: https://chromium.googlesource.com/chromium/src/+/a114fa410cb49bf11df659f51763420838c49605

Patch Set 1 #

Total comments: 8

Patch Set 2 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -26 lines) Patch
M components/suggestions/suggestions_service.h View 1 chunk +1 line, -1 line 0 comments Download
M components/suggestions/suggestions_service_impl.h View 4 chunks +8 lines, -3 lines 0 comments Download
M components/suggestions/suggestions_service_impl.cc View 1 5 chunks +41 lines, -17 lines 0 comments Download
M components/suggestions/suggestions_service_impl_unittest.cc View 1 7 chunks +34 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (16 generated)
Marc Treib
This is what I'd suggest: Fetch on sign-in, but not during startup. Also remove the ...
3 years, 7 months ago (2017-05-08 13:45:54 UTC) #4
mastiz
LGTM! Can you please elaborate the CL description to cover which impact is expected, per ...
3 years, 7 months ago (2017-05-08 14:18:32 UTC) #5
Marc Treib
Thanks! All addressed. https://codereview.chromium.org/2866013002/diff/1/components/suggestions/suggestions_service_impl.cc File components/suggestions/suggestions_service_impl.cc (right): https://codereview.chromium.org/2866013002/diff/1/components/suggestions/suggestions_service_impl.cc#newcode308 components/suggestions/suggestions_service_impl.cc:308: if (new_sync_state == SYNC_OR_HISTORY_SYNC_DISABLED) { On ...
3 years, 7 months ago (2017-05-08 14:57:46 UTC) #11
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/2866013002/20001
3 years, 7 months ago (2017-05-08 16:04:01 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 16:10:19 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a114fa410cb49bf11df659f51763...

Powered by Google App Engine
This is Rietveld 408576698