Preferences 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. Review URL: https://chromiumcodereview.appspot.com/10790089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148013 0039d316-1c4b-4281-b951-d872f2087c98
Showing
This diff is collapsed.
Please register or sign in to comment