-
Notifications
You must be signed in to change notification settings - Fork 892
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
Switch tip where possible to tip via code #4120
Conversation
1674a38
to
d2f1177
Compare
@@ -72,14 +72,6 @@ chrome.braveRewards.onRecurringTipRemoved.addListener((success: boolean) => { | |||
} | |||
}) | |||
|
|||
chrome.braveRewards.onPendingContributionSaved.addListener((result: number) => { |
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.
this code was duplicated
d2f1177
to
477487c
Compare
@@ -1189,7 +1189,7 @@ void RewardsServiceImpl::SavePublisherInfo( | |||
ledger::PublisherInfoCallback callback) { | |||
base::PostTaskAndReplyWithResult(file_task_runner_.get(), FROM_HERE, | |||
base::BindOnce(&SavePublisherInfoOnFileTaskRunner, | |||
std::move(publisher_info), | |||
publisher_info->Clone(), |
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.
we need to clone as we use same pointer in second bind
d4ca210
to
bfd76ba
Compare
bfd76ba
to
5ba2184
Compare
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++
} | ||
|
||
if (should_contribute) { | ||
// Wait for reconciliation to complete |
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.
nit: comment is not required as code is self-documented
5ba2184
to
afe71af
Compare
CI failed on |
CI failed on |
Resolves brave/brave-browser#7184
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.