DescriptionSupport for promo_type.
* Create an enum PromoType and a data member promo_type_ of NotificationPromo.
* InitFromJson, InitFromPrefs, HandleClosed and HandleViewed all take a PromoType now.
* HandleClosed and HandleViewed are static.
* Add an anon function PromoTypeToString for conversion from PromoType to string.
* Improve unit tests TestViewed() and TestClosed().
BUG=123061
TEST=unit tests. Manual.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150235
Patch Set 1 #Patch Set 2 : #
Total comments: 1
Patch Set 3 : #Patch Set 4 : #
Total comments: 6
Patch Set 5 : review feedback #
Messages
Total messages: 11 (0 generated)
|