Description[NTP Client] Make the SignInPromo update on SignInAllowed changes
Sign in is not allowed until the FRE is completed, but the sign in
promo is initialised and shown before that. Observing these changes
allows showing the promo if the user doesn't sign in during the FRE.
Adds a SelfRegistrable type that objects can implement, and when
sent to the NTPManager, their unregister() method will be called when
the page is destroyed.
Used to take care of the cleanup of the above observers.
BUG=656501
Committed: https://crrev.com/068e28dc61b5443839bb31a33bfcff7b695c7546
Cr-Commit-Position: refs/heads/master@{#426470}
Patch Set 1 #
Total comments: 14
Patch Set 2 : rebase, address comments #
Total comments: 5
Patch Set 3 : fix compilation #Patch Set 4 : now philosophically correct #
Messages
Total messages: 26 (16 generated)
|