Chromium Code Reviews
Descriptionntp_tiles: Migrate to multi-observer model
No behavioral changes except a subtle change affecting Finch metrics,
described later below. The goal is to bring the component one step
closer to becoming a service, where multiple observers will need to
coexist.
MostVisitedSites' API now replaces SetMostVisitedURLsObserver() with
AddObserver()/RemoveObserver(). There are two important changes:
1. The maximum number of tiles is no longer specified, since each
observer could have a different interest. Instead, clients are
expected to truncate the tileset manually.
2. AddObserver() doesn't trigger a refresh. Instead, clients are
expected to call Refresh() explicitly.
Finch actives for Popular Sites studies will increase due to
ShouldShowPopularSites() being called more often. This is because
the component will internally always try to build a tileset of size 12
(and pull Popular Sites if enabled). This change might also have a
performance impact (due to PopularSites::StartFetch).
BUG=619584
WIP: to adopt multiobserver.
Patch Set 1 #Patch Set 2 : Fixed build. #
Total comments: 4
Messages
Total messages: 12 (10 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||