Skip to content

Commit

Permalink
Merge pull request #527 from brave/issue/1326
Browse files Browse the repository at this point in the history
windows appears to sometimes move the unique_ptr and send an empty Pu…
  • Loading branch information
bbondy authored Sep 29, 2018
2 parents d160950 + e233cd1 commit 1c64265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/brave_rewards/browser/rewards_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,10 @@ void RewardsServiceImpl::OnPublisherStateSaved(
void RewardsServiceImpl::SavePublisherInfo(
std::unique_ptr<ledger::PublisherInfo> publisher_info,
ledger::PublisherInfoCallback callback) {
ledger::PublisherInfo info_copy = *publisher_info;
base::PostTaskAndReplyWithResult(file_task_runner_.get(), FROM_HERE,
base::Bind(&SavePublisherInfoOnFileTaskRunner,
*publisher_info,
info_copy,
publisher_info_backend_.get()),
base::Bind(&RewardsServiceImpl::OnPublisherInfoSaved,
AsWeakPtr(),
Expand Down

0 comments on commit 1c64265

Please sign in to comment.