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

Issue 7719013: PromoResourceService fixes for 835 (Closed)

Created:
9 years, 4 months ago by achuithb
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

PromoResourceService fixes for 835. Increase number of groups to 100. Introduce ntp.promo_group_max. Add max_group param to question. Remove is_sync code from CanShowPromo. Add is_valid_group code to CanShowPromo. New promo trigger is based on promo_end only (and not also on promo_start). Reset group number on new promo, and not every time the promo resource is downloaded. Remove sync action from showPromoNotification. Fix unit test. BUG=93201 TEST=Should be able to see promo without sync text. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98150

Patch Set 1 #

Patch Set 2 : fix max group check #

Patch Set 3 : remove sync from new_tab + fixes #

Patch Set 4 : really include new_tab.js #

Patch Set 5 : reset group on new promo, which triggers on promo_end change #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -28 lines) Patch
M chrome/browser/resources/new_tab.js View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/web_resource/promo_resource_service.cc View 1 2 3 4 8 chunks +34 lines, -23 lines 1 comment Download
M chrome/browser/web_resource/promo_resource_service_unittest.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
achuithb
Here is the minimal set of changes for M14, based off of branch 835. Let ...
9 years, 4 months ago (2011-08-24 00:47:54 UTC) #1
Miranda Callahan
On 2011/08/24 00:47:54, achuith.bhandarkar wrote: > Here is the minimal set of changes for M14, ...
9 years, 4 months ago (2011-08-24 05:30:57 UTC) #2
achuithb
Ok, I've updated the code so a new promo_group is created whenever the promo changes ...
9 years, 4 months ago (2011-08-24 08:45:41 UTC) #3
Miranda Callahan
On 2011/08/24 08:45:41, achuith.bhandarkar wrote: > Ok, I've updated the code so a new promo_group ...
9 years, 4 months ago (2011-08-24 19:07:11 UTC) #4
jstritar
http://codereview.chromium.org/7719013/diff/5010/chrome/browser/web_resource/promo_resource_service.cc File chrome/browser/web_resource/promo_resource_service.cc (right): http://codereview.chromium.org/7719013/diff/5010/chrome/browser/web_resource/promo_resource_service.cc#newcode493 chrome/browser/web_resource/promo_resource_service.cc:493: return !promo_closed && is_valid_group && is_promo_build; It might be ...
9 years, 4 months ago (2011-08-24 19:41:48 UTC) #5
achuithb
Jon, at the end of PromoResourceServiceTest.UnpackPromoSignal, I added the following test: EXPECT_EQ(PromoResourceServiceUtil::CanShowPromo(&profile_), promo_group < promo_group_max); ...
9 years, 4 months ago (2011-08-24 22:05:45 UTC) #6
jstritar
9 years, 4 months ago (2011-08-24 22:36:14 UTC) #7
LGTM per follow up discussion

Powered by Google App Engine
This is Rietveld 408576698