DescriptionPreferences support for multiple promos.
* Add promo_type_. For now this is hardcoded to ntp_notification_promo, but we'll also allow bubble_promo soon.
* Store promo preferences in a dictionary, in a list, in a promo object. This reflects the structure of the promo as we receive it over the wire.
* Add ClearDeprecatedPrefs.
* Fix logic of CheckForNewNotification, HandleViewed and HandleClosed. These now call InitFromPreferences.
* Add better tests for HandleViewed and HandleClosed. Get rid of TestPrefs.
BUG=123061
TEST=unit tests.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148013
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #Patch Set 8 : #
Total comments: 6
Patch Set 9 : #
Messages
Total messages: 7 (0 generated)
|