Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Issue 10790089: Preferences support for multiple promos. (Closed)

Created:
8 years, 5 months ago by achuithb
Modified:
8 years, 4 months ago
Reviewers:
Robert Sesek, aruslan
CC:
chromium-reviews
Visibility:
Public.

Description

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. 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 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -163 lines) Patch
M chrome/browser/web_resource/notification_promo.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/web_resource/notification_promo.cc View 1 2 3 4 5 6 7 8 6 chunks +184 lines, -122 lines 0 comments Download
M chrome/browser/web_resource/promo_resource_service_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +25 lines, -41 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
achuithb
Ruslan - please take a look.
8 years, 5 months ago (2012-07-20 23:10:09 UTC) #1
aruslan
LGTM (I'm not a committer); I'll fix the Chrome for Android implementation and upstream it ...
8 years, 5 months ago (2012-07-23 18:50:52 UTC) #2
achuithb
Rob, please take a look.
8 years, 5 months ago (2012-07-23 18:52:57 UTC) #3
Robert Sesek
lgtm http://codereview.chromium.org/10790089/diff/3004/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): http://codereview.chromium.org/10790089/diff/3004/chrome/browser/web_resource/notification_promo.cc#newcode108 chrome/browser/web_resource/notification_promo.cc:108: void ClearDeprecatedPrefs(PrefService* prefs) { Add a TODO for ...
8 years, 5 months ago (2012-07-23 20:38:49 UTC) #4
achuithb
Addressed comments in patchset 9, along with rebase. Thanks for the reviews, Rob and Ruslan! ...
8 years, 4 months ago (2012-07-23 23:12:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/10790089/16001
8 years, 4 months ago (2012-07-23 23:13:01 UTC) #6
commit-bot: I haz the power
8 years, 4 months ago (2012-07-24 00:42:21 UTC) #7
Change committed as 148013

Powered by Google App Engine
This is Rietveld 408576698