-
Notifications
You must be signed in to change notification settings - Fork 873
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 concurrency #1531
Fix concurrency #1531
Conversation
60b761d
to
83bdb72
Compare
please review per-commit, since I've run clang-format on changed files. |
base::PostTaskWithTraits( | ||
FROM_HERE, {BrowserThread::UI}, | ||
base::Bind(&BraveNetworkDelegateBase::GetReferralHeaders, | ||
base::Bind(&BraveNetworkDelegateBase::InitPrefChangeRegistrarOnUI, |
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.
I think the problem here is that this really doesn't seem like the right place for this stuff in the first place. I think it should be in BraveReferralsService
and it can provide a static method that can be accessed from the IO thread. Since this is local_state it isn't profile-specific so we can track it globally
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.
Yeah, this is exactly what I mentioned in the TODO comment. I propose to merge this until I refactor the whole thing globally.
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.
sorry, missed that. I'm good with merging and follow-up refactor as well
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.
I think this is ok for now but please post an issue for the refactor mentioned in the TODO.
CC @emerick to spot check.
Filed the follow-up brave/brave-browser#3206 |
@emerick for this specific PR, should QA basically go through referrals to make sure they're still working? Does this include QAing the pings or just making sure that the |
@kjozwiak Yeah, it's just making sure that |
Submitter Checklist:
Fix brave/brave-browser#3176
npm test brave_unit_tests && npm test brave_browser_tests
) ongit rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist: