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

Issue 10836099: Support for promo_type. (Closed)

Created:
8 years, 4 months ago by achuithb
Modified:
8 years, 4 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org
Visibility:
Public.

Description

Support 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -63 lines) Patch
M chrome/browser/ui/webui/ntp/new_tab_page_handler.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/web_resource/notification_promo.h View 1 2 3 4 3 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/web_resource/notification_promo.cc View 1 2 3 4 6 chunks +48 lines, -28 lines 0 comments Download
M chrome/browser/web_resource/promo_resource_service.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/web_resource/promo_resource_service_unittest.cc View 1 2 5 chunks +30 lines, -22 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
achuithb
Ruslan: Does the ntp promo on android use new_tab_page_handler.cc or ntp_resource_cache.cc? I'm guessing not? Please ...
8 years, 4 months ago (2012-08-04 09:27:00 UTC) #1
aruslan
LGTM. This will break Android and iOS downstream, I'll fix Android; please include noyau@ so ...
8 years, 4 months ago (2012-08-06 16:29:10 UTC) #2
aruslan
(I'm not a committer.)
8 years, 4 months ago (2012-08-06 16:29:42 UTC) #3
achuithb
Ruslan, I changed the string to an enum and add a convertor function. Please take ...
8 years, 4 months ago (2012-08-06 21:05:44 UTC) #4
aruslan
Looks good to me with 2 nits (indentation and "Malfromed"). http://codereview.chromium.org/10836099/diff/12002/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc File chrome/browser/ui/webui/ntp/new_tab_page_handler.cc (right): http://codereview.chromium.org/10836099/diff/12002/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc#newcode73 ...
8 years, 4 months ago (2012-08-06 21:11:12 UTC) #5
Robert Sesek
LGTM http://codereview.chromium.org/10836099/diff/12002/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): http://codereview.chromium.org/10836099/diff/12002/chrome/browser/web_resource/notification_promo.cc#newcode493 chrome/browser/web_resource/notification_promo.cc:493: promo.views_++; Use ++pre-increment. http://codereview.chromium.org/10836099/diff/12002/chrome/browser/web_resource/notification_promo.h File chrome/browser/web_resource/notification_promo.h (right): http://codereview.chromium.org/10836099/diff/12002/chrome/browser/web_resource/notification_promo.h#newcode53 ...
8 years, 4 months ago (2012-08-06 21:21:44 UTC) #6
achuithb
Thanks for the reviews! Dan: Need owner lgtm for ntp stuff. http://codereview.chromium.org/10836099/diff/12002/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc File chrome/browser/ui/webui/ntp/new_tab_page_handler.cc (right): ...
8 years, 4 months ago (2012-08-06 22:16:19 UTC) #7
Evan Stade
ntp lgtm
8 years, 4 months ago (2012-08-07 00:21:55 UTC) #8
achuithb
On 2012/08/07 00:21:55, Evan Stade wrote: > ntp lgtm Thanks Evan!
8 years, 4 months ago (2012-08-07 00:23:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/achuith@chromium.org/10836099/9002
8 years, 4 months ago (2012-08-07 00:24:19 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-08-07 02:16:18 UTC) #11
Change committed as 150235

Powered by Google App Engine
This is Rietveld 408576698