[tracking bug] Don't re-fetch snippets on every NTP load |
||||||
Issue descriptionCurrently, FetchSnippets is called on every NTP load. Figure out why, and do something about it.
,
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
,
Apr 8 2016
,
Apr 22 2016
,
Jul 1 2016
,
Jul 1 2016
,
Jul 1 2016
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by bugdroid1@chromium.org
, Apr 7 2016