Chromium Code Reviews
Description[NTP Snippets] Clear the snippets when the user signs out
Adds an onSnippetsCleared method to the SnippetsObserver interface,
that gets called when the service wants the snippets to be cleared.
(= when no suggestion hosts are returned.)
Also makes the NewTabPageAdapter stop unregistering its observer
when it received satisfying data for the first time. Instead it
uses a boolean to know whether it should refresh the displayed
snippets or not.
BUG=608913
Committed: https://crrev.com/cbea852c300a928cf29668e0d17e7f27ea596904
Cr-Commit-Position: refs/heads/master@{#394123}
Patch Set 1 #
Total comments: 6
Patch Set 2 : fix and add test, address comments #
Total comments: 2
Patch Set 3 : fix double we #
Total comments: 1
Messages
Total messages: 15 (5 generated)
|