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

Issue 10860025: Remove promotion-type-specific JSON handling from NotificationPromo (Closed)

Created:
8 years, 4 months ago by aruslan
Modified:
8 years, 4 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Split JSON processing of parameters that needs to be handled by the promotion system (e.g. rollout plan parameters) from processing of promo-type-specific parameters. BUG=143692 TESTS=unit_tests, manual tests as per test plan Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153180

Patch Set 1 #

Total comments: 24

Patch Set 2 : Addressing the review comments. #

Patch Set 3 : Comments. #

Total comments: 29

Patch Set 4 : Addressing the review comments (thanks for the review!). #

Patch Set 5 : Rebase. #

Total comments: 28

Patch Set 6 : Addressing review comments. #

Patch Set 7 : Per Mihai's suggestion -- NotificationPromoMobileNtp now encapsulates NotificationPromo. #

Patch Set 8 : Comments. #

Patch Set 9 : Added a header file to .gypi #

Patch Set 10 : Rebase. #

Total comments: 38

Patch Set 11 : Addressing review comments. #

Total comments: 2

Patch Set 12 : Removed 2 unused pref names; rebase #

Patch Set 13 : Indent in contructor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+636 lines, -337 lines) Patch
M chrome/browser/web_resource/notification_promo.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/web_resource/notification_promo.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +143 lines, -131 lines 0 comments Download
A chrome/browser/web_resource/notification_promo_mobile_ntp.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +90 lines, -0 lines 0 comments Download
A chrome/browser/web_resource/notification_promo_mobile_ntp.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/web_resource/promo_resource_service_mobile_ntp_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +200 lines, -0 lines 0 comments Download
M chrome/browser/web_resource/promo_resource_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +123 lines, -120 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -55 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
achuithb
8 years, 4 months ago (2012-08-17 22:28:19 UTC) #1
achuithb
Let's also create a bug for this work item (since it's not minor), and upate ...
8 years, 4 months ago (2012-08-17 22:55:12 UTC) #2
achuithb
Overall, I quite like the changes!
8 years, 4 months ago (2012-08-17 22:55:33 UTC) #3
achuithb
Dan for additional feedback if you have the time.
8 years, 4 months ago (2012-08-17 22:56:18 UTC) #4
Dan Beam
On vacation today, can look Monday.
8 years, 4 months ago (2012-08-17 23:32:39 UTC) #5
aruslan
Thank you for the comments, Achuith! I added http://crbug.com/143692 and changed description; please take a ...
8 years, 4 months ago (2012-08-20 15:36:53 UTC) #6
noyau (Ping after 24h)
https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo.cc#newcode125 chrome/browser/web_resource/notification_promo.cc:125: // TODO(achuith): remove this in m23. It is probably ...
8 years, 4 months ago (2012-08-20 15:53:16 UTC) #7
msarda
https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo_mobile_ntp.h File chrome/browser/web_resource/notification_promo_mobile_ntp.h (right): https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo_mobile_ntp.h#newcode20 chrome/browser/web_resource/notification_promo_mobile_ntp.h:20: class NotificationPromoMobileNtp { I would have expected this to ...
8 years, 4 months ago (2012-08-20 16:09:47 UTC) #8
achuithb
https://chromiumcodereview.appspot.com/10860025/diff/1/chrome/browser/web_resource/notification_promo_mobile_ntp.cc File chrome/browser/web_resource/notification_promo_mobile_ntp.cc (right): https://chromiumcodereview.appspot.com/10860025/diff/1/chrome/browser/web_resource/notification_promo_mobile_ntp.cc#newcode25 chrome/browser/web_resource/notification_promo_mobile_ntp.cc:25: return; On 2012/08/20 15:36:53, aruslan wrote: > Currently all ...
8 years, 4 months ago (2012-08-20 19:17:48 UTC) #9
achuithb
https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo.cc#newcode38 chrome/browser/web_resource/notification_promo.cc:38: // TODO(achuith): Shouldn't this be in pref_names? Let's not ...
8 years, 4 months ago (2012-08-20 19:28:31 UTC) #10
Dan Beam
made it to promo_resource_service_mobile_ntp_unittest.cc https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo.cc#newcode41 chrome/browser/web_resource/notification_promo.cc:41: // Keys into the kPrefPromoObject ...
8 years, 4 months ago (2012-08-20 20:58:12 UTC) #11
achuithb
http://codereview.chromium.org/10860025/diff/8003/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): http://codereview.chromium.org/10860025/diff/8003/chrome/browser/web_resource/notification_promo.cc#newcode218 chrome/browser/web_resource/notification_promo.cc:218: bool rv = dict->GetWithoutPathExpansion(*it, &child); On 2012/08/20 20:58:12, Dan ...
8 years, 4 months ago (2012-08-20 21:52:31 UTC) #12
aruslan
Thanks for the review! PTAL at the changes. https://chromiumcodereview.appspot.com/10860025/diff/1/chrome/browser/web_resource/notification_promo_mobile_ntp.cc File chrome/browser/web_resource/notification_promo_mobile_ntp.cc (right): https://chromiumcodereview.appspot.com/10860025/diff/1/chrome/browser/web_resource/notification_promo_mobile_ntp.cc#newcode25 chrome/browser/web_resource/notification_promo_mobile_ntp.cc:25: return; ...
8 years, 4 months ago (2012-08-20 22:38:17 UTC) #13
achuithb
https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo_mobile_ntp.h File chrome/browser/web_resource/notification_promo_mobile_ntp.h (right): https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo_mobile_ntp.h#newcode20 chrome/browser/web_resource/notification_promo_mobile_ntp.h:20: class NotificationPromoMobileNtp { Agree with Ruslan's sentiments. My first ...
8 years, 4 months ago (2012-08-20 22:45:34 UTC) #14
Dan Beam
https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo.cc#newcode218 chrome/browser/web_resource/notification_promo.cc:218: bool rv = dict->GetWithoutPathExpansion(*it, &child); On 2012/08/20 22:38:17, aruslan ...
8 years, 4 months ago (2012-08-21 03:23:25 UTC) #15
Dan Beam
https://chromiumcodereview.appspot.com/10860025/diff/14004/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): https://chromiumcodereview.appspot.com/10860025/diff/14004/chrome/browser/web_resource/notification_promo.cc#newcode436 chrome/browser/web_resource/notification_promo.cc:436: const base::ListValue* promo_list = NULL; what's the difference here? ...
8 years, 4 months ago (2012-08-21 03:53:49 UTC) #16
msarda
https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo_mobile_ntp.h File chrome/browser/web_resource/notification_promo_mobile_ntp.h (right): https://chromiumcodereview.appspot.com/10860025/diff/8003/chrome/browser/web_resource/notification_promo_mobile_ntp.h#newcode20 chrome/browser/web_resource/notification_promo_mobile_ntp.h:20: class NotificationPromoMobileNtp { Let me explain how I am ...
8 years, 4 months ago (2012-08-21 11:33:58 UTC) #17
aruslan
Woohoo; thanks for reviews! Now I'm going to look into Mihai's use-case. https://chromiumcodereview.appspot.com/10860025/diff/14004/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc ...
8 years, 4 months ago (2012-08-21 15:57:55 UTC) #18
msarda
I think this is good for my use case. Thanks for this refactoring.
8 years, 4 months ago (2012-08-22 08:25:43 UTC) #19
aruslan
Excellent, thank you very much for comments and suggestions! sky@ -- please take a look ...
8 years, 4 months ago (2012-08-22 15:12:47 UTC) #20
sky
.gypi LGTM
8 years, 4 months ago (2012-08-22 19:15:53 UTC) #21
Dan Beam
the code lg to me, I don't spot anything particularly large at a glance but ...
8 years, 4 months ago (2012-08-22 19:43:27 UTC) #22
achuithb
Very close. Should be the last round https://chromiumcodereview.appspot.com/10860025/diff/22002/chrome/browser/web_resource/notification_promo.cc File chrome/browser/web_resource/notification_promo.cc (right): https://chromiumcodereview.appspot.com/10860025/diff/22002/chrome/browser/web_resource/notification_promo.cc#newcode125 chrome/browser/web_resource/notification_promo.cc:125: // TODO(achuith): ...
8 years, 4 months ago (2012-08-22 19:49:20 UTC) #23
achuithb
https://chromiumcodereview.appspot.com/10860025/diff/22002/chrome/browser/web_resource/notification_promo_mobile_ntp.h File chrome/browser/web_resource/notification_promo_mobile_ntp.h (right): https://chromiumcodereview.appspot.com/10860025/diff/22002/chrome/browser/web_resource/notification_promo_mobile_ntp.h#newcode57 chrome/browser/web_resource/notification_promo_mobile_ntp.h:57: On 2012/08/22 19:43:27, Dan Beam wrote: > would it ...
8 years, 4 months ago (2012-08-22 19:51:50 UTC) #24
aruslan
Scott - thanks! Dan and Achuith -- thanks for the comments! PTAL at the changes. ...
8 years, 4 months ago (2012-08-23 00:49:59 UTC) #25
Dan Beam
https://chromiumcodereview.appspot.com/10860025/diff/22002/chrome/browser/web_resource/notification_promo_mobile_ntp.h File chrome/browser/web_resource/notification_promo_mobile_ntp.h (right): https://chromiumcodereview.appspot.com/10860025/diff/22002/chrome/browser/web_resource/notification_promo_mobile_ntp.h#newcode57 chrome/browser/web_resource/notification_promo_mobile_ntp.h:57: On 2012/08/23 00:49:59, aruslan wrote: > On 2012/08/22 19:43:27, ...
8 years, 4 months ago (2012-08-23 01:35:57 UTC) #26
achuithb
Please remove promo_resource_service.cc from this CL. LGTM. Thanks for this! http://codereview.chromium.org/10860025/diff/18004/chrome/common/pref_names.h File chrome/common/pref_names.h (left): http://codereview.chromium.org/10860025/diff/18004/chrome/common/pref_names.h#oldcode548 ...
8 years, 4 months ago (2012-08-23 06:01:23 UTC) #27
aruslan
Thank you!! http://codereview.chromium.org/10860025/diff/18004/chrome/common/pref_names.h File chrome/common/pref_names.h (left): http://codereview.chromium.org/10860025/diff/18004/chrome/common/pref_names.h#oldcode548 chrome/common/pref_names.h:548: extern const char kNtpPromoBuild[]; On 2012/08/23 06:01:24, ...
8 years, 4 months ago (2012-08-23 18:06:23 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aruslan@chromium.org/10860025/32001
8 years, 4 months ago (2012-08-23 22:28:40 UTC) #29
commit-bot: I haz the power
Try job failure for 10860025-32001 (retry) on mac_rel for step "interactive_ui_tests" (clobber build). It's a ...
8 years, 4 months ago (2012-08-23 23:42:15 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aruslan@chromium.org/10860025/32001
8 years, 4 months ago (2012-08-23 23:44:39 UTC) #31
commit-bot: I haz the power
Try job failure for 10860025-32001 (retry) on win_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 4 months ago (2012-08-24 02:25:30 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aruslan@chromium.org/10860025/32001
8 years, 4 months ago (2012-08-24 05:02:07 UTC) #33
commit-bot: I haz the power
8 years, 4 months ago (2012-08-24 09:59:59 UTC) #34
Change committed as 153180

Powered by Google App Engine
This is Rietveld 408576698