Description[SuggestionsService] Split SuggestionsService interface from impl
The introduction of an interface allows dependent classes
(primarily MostVisitedSites) to inject doubles in tests, since it's
otherwise hard due to the number of dependencies.
A small signature change is adopted: GetSuggestionsDataFromCache() now
returns base::Optional, which allows clients to distinguish cache
misses from cache containing an empty tileset. Client code has been
updated to prevent behavioral changes.
BUG=619584
Committed: https://crrev.com/d5d7b4a47a878e25b55294cf09751340aaf302e2
Cr-Commit-Position: refs/heads/master@{#439195}
Patch Set 1 #Patch Set 2 : Split SuggestionsService interface and SuggestionsServiceImpl. #Patch Set 3 : Fix iOS build. #Patch Set 4 #
Total comments: 3
Patch Set 5 : Moved impl to dedicated file. #Dependent Patchsets: Messages
Total messages: 45 (31 generated)
|