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

Issue 10541054: Immediate notification if active promotion arrives (Closed)

Created:
8 years, 6 months ago by aruslan
Modified:
8 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Immediate notification if active promotion arrives If an active (begin<now<end) promotion arrives after the initial launch sequence, the promo resource service will notify clients immediately AND schedule a notification at the end of promotion. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141158

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comment fix #

Total comments: 6

Patch Set 3 : More comments and "else". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M chrome/browser/web_resource/promo_resource_service.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
aruslan
8 years, 6 months ago (2012-06-07 18:09:41 UTC) #1
Dan Beam
so this change to make sure we don't accidentally run the end notification before the ...
8 years, 6 months ago (2012-06-07 18:14:57 UTC) #2
Dan Beam
On 2012/06/07 18:14:57, Dan Beam wrote: > so this change to make sure we don't ...
8 years, 6 months ago (2012-06-07 18:15:14 UTC) #3
aruslan
The logic before the change was correct (we need to send the notification immediately if ...
8 years, 6 months ago (2012-06-07 18:21:35 UTC) #4
Zhenyao Mo
I don't really know much about promotion stuff, so I'll keep my mouth shut.
8 years, 6 months ago (2012-06-07 18:25:08 UTC) #5
Dan Beam
On 2012/06/07 18:21:35, aruslan wrote: > The logic before the change was correct (we need ...
8 years, 6 months ago (2012-06-07 18:29:55 UTC) #6
achuithb
https://chromiumcodereview.appspot.com/10541054/diff/9001/chrome/browser/web_resource/promo_resource_service.cc File chrome/browser/web_resource/promo_resource_service.cc (right): https://chromiumcodereview.appspot.com/10541054/diff/9001/chrome/browser/web_resource/promo_resource_service.cc#newcode155 chrome/browser/web_resource/promo_resource_service.cc:155: if (ms_until_end > 0) { Maybe also add else ...
8 years, 6 months ago (2012-06-07 20:34:27 UTC) #7
aruslan
Thanks for the comments! Please let me know if the comments make things clearer. https://chromiumcodereview.appspot.com/10541054/diff/9001/chrome/browser/web_resource/promo_resource_service.cc ...
8 years, 6 months ago (2012-06-07 20:55:40 UTC) #8
achuithb
https://chromiumcodereview.appspot.com/10541054/diff/9001/chrome/browser/web_resource/promo_resource_service.cc File chrome/browser/web_resource/promo_resource_service.cc (right): https://chromiumcodereview.appspot.com/10541054/diff/9001/chrome/browser/web_resource/promo_resource_service.cc#newcode160 chrome/browser/web_resource/promo_resource_service.cc:160: // Schedule notification at the end of promotion. On ...
8 years, 6 months ago (2012-06-07 21:31:28 UTC) #9
achuithb
lgtm
8 years, 6 months ago (2012-06-07 22:29:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aruslan@chromium.org/10541054/9002
8 years, 6 months ago (2012-06-08 00:52:13 UTC) #11
commit-bot: I haz the power
8 years, 6 months ago (2012-06-08 02:21:17 UTC) #12
Change committed as 141158

Powered by Google App Engine
This is Rietveld 408576698