-
Notifications
You must be signed in to change notification settings - Fork 869
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
[iOS] - Fix #27841: Added API for use_legacy_component and callback to the AdblockService #16693
Conversation
|
3 similar comments
|
|
|
99c7eca
to
8457b3a
Compare
|
|
const char kAdBlockIosComponentName[] = "Brave Ad Block Updater"; | ||
const char kAdBlockIosComponentId[] = "iodkpdagapdfkphljnddpjlldadblomo"; | ||
const char kAdBlockIosComponentBase64PublicKey[] = |
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.
Can we make it more obvious that this component isn't iOS specific?
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.
Either that or find a way to share the component defined in the ad_block_service.cc
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 is all temporary and can be removed once we switch to the non-legacy version
Edit: NVM, this component id is the new one that is not iOS specific
|
1 similar comment
|
Based on this solution keeping the properties for install location & filter lists are we going to only call it once on brave-ios side? (cc @cuba) |
Removed the |
If I understand you correctly, yes we will call it only once. Technically we already only attach the callback once so the code won't change much on the iOS side. As for the filter lists, those are only retrieved once but there shouldn't be any reason why we can't access it multiple times. |
@@ -22,6 +22,7 @@ using OnComponentReadyCallback = | |||
|
|||
void RegisterAdBlockIosDefaultDatComponent( |
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 should remove Dat from this name as it will not be a dat format if use_legacy_component
is false
@Brandon-T its been some time and I have forgotten what is missing to merge this. |
Since this PR is really out of date and things have changed a lot since its creation I have created a new PR here which uses newer components: |
Resolves brave/brave-browser#27841
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: