-
Notifications
You must be signed in to change notification settings - Fork 888
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
Fix Brave Ads confirmation systemTimestamp user data should be recreated for retries #17584
Conversation
557276a
to
333d5f4
Compare
63131fd
to
15f9c33
Compare
*this = other; | ||
} | ||
|
||
UserDataInfo& UserDataInfo::operator=(const UserDataInfo& other) { |
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.
maybe we can make UserDataInfo as non-copiable?
4b44d9f
to
154e5c1
Compare
*this = other; | ||
} | ||
|
||
OptedInUserDataInfo& OptedInUserDataInfo::operator=( |
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.
would it be better to do a separate Clone() method for OptedInUserDataInfo? WDYT?
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
Resolves brave/brave-browser#29005
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Confirm systemTimestamp in payloads when redeeming unblinded tokens contains the timestamp when retrying with minutes, seconds and milliseconds set to 0 (createdAtTimestamp should be the time the confirmation was originally created).