-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes converted ads keep showing #5381
Conversation
49989c1
to
c3284c4
Compare
namespace ads { | ||
|
||
ConversionFrequencyCap::ConversionFrequencyCap( | ||
const FrequencyCapping* const frequency_capping) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double const?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const X* const p
means "p
is a const
pointer to an X
that is const
": you can’t change the pointer p
itself, nor can you change the X
object via p
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...ative-ads/src/bat/ads/internal/frequency_capping/exclusion_rules/conversion_frequency_cap.cc
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good to me, didn't test out functionality of it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! (focussed mainly on logic, did not run tests locally)
LGTM
Verified test plan from brave/brave-browser#9436.
Verified that without conversion, ads keep showing for the same creative set |
Resolves brave/brave-browser#9436
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
See brave/brave-browser#9436
Reviewer Checklist:
After-merge Checklist:
changes has landed on.