New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 601034 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 584266



Sign in to add a comment

[tracking bug] Don't re-fetch snippets on every NTP load

Project Member Reported by treib@chromium.org, Apr 6 2016

Issue description

Currently, FetchSnippets is called on every NTP load. Figure out why, and do something about it.
 
Project Member

Comment 2 by bugdroid1@chromium.org, Apr 8 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9b08521135f70763c671ea87c6d792c82b690b79

commit 9b08521135f70763c671ea87c6d792c82b690b79
Author: treib <treib@chromium.org>
Date: Fri Apr 08 09:08:43 2016

[NTP Snippets] Re-fetch snippets on ML changes only when the hosts actually change

Every time the NTP is opened, the suggestions are refreshed, resulting in an OnSuggestionsChanged call.
Instead of blindly re-fetching snippets each time, store the list of hosts we saw previously, and only re-fetch when those change.

BUG= 601034 

Review URL: https://codereview.chromium.org/1863133003

Cr-Commit-Position: refs/heads/master@{#386023}

[modify] https://crrev.com/9b08521135f70763c671ea87c6d792c82b690b79/components/ntp_snippets/ntp_snippets_fetcher.cc
[modify] https://crrev.com/9b08521135f70763c671ea87c6d792c82b690b79/components/ntp_snippets/ntp_snippets_fetcher.h
[modify] https://crrev.com/9b08521135f70763c671ea87c6d792c82b690b79/components/ntp_snippets/ntp_snippets_service.cc
[modify] https://crrev.com/9b08521135f70763c671ea87c6d792c82b690b79/components/ntp_snippets/ntp_snippets_service.h
[modify] https://crrev.com/9b08521135f70763c671ea87c6d792c82b690b79/components/ntp_snippets/pref_names.cc
[modify] https://crrev.com/9b08521135f70763c671ea87c6d792c82b690b79/components/ntp_snippets/pref_names.h

Comment 3 by treib@chromium.org, Apr 8 2016

Status: Fixed (was: Started)

Comment 4 by fi...@chromium.org, Apr 22 2016

Blocking: 584266

Comment 5 by fi...@chromium.org, Jul 1 2016

Labels: zine-mr-MVP

Comment 6 by fi...@chromium.org, Jul 1 2016

Labels: -zine-mr-mvp

Comment 7 by fi...@chromium.org, Jul 1 2016

Labels: zine-mr-MVP

Sign in to add a comment