-
Notifications
You must be signed in to change notification settings - Fork 896
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
[ads] Do not fetch geo and catalog on iOS when Brave Rewards/News disabled #24570
Conversation
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.
brave_news
changes LGTM
[puLL-Merge] - brave/brave-core@24570 Here's my review of the pull request: DescriptionThis PR refactors the Brave News preferences and P3A (Privacy Preserving Product Analytics) related code. It moves some functionality from the ChangesChanges
Possible Issues
Security HotspotsNo significant security issues were identified in this change. |
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.
ios++
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
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.
chromium_src
++
[ads] Do not fetch geo and catalog on iOS when Brave Rewards/News disabled
Verified with 1.69.107 on iPhone 13 Pro Max Testcase 1Brave Ads started and successfully initialized
there is NO network request to https://geo.ads.bravesoftware.com/v1/getstate endpoint there is network request to https://geo.ads.bravesoftware.com/v1/getstate endpoint after enabling Brave News
there is network request to https://static.ads.bravesoftware.com/v9/catalog endpoint after enabling Brave News
Testcase 2Brave Ads started and successfully initialized
there is NO network request to https://geo.ads.bravesoftware.com/v1/getstate endpoint there is network request to https://geo.ads.bravesoftware.com/v1/getstate endpoint after enabling Brave News
there is network request to https://static.ads.bravesoftware.com/v9/catalog endpoint after enabling Brave News
|
Resolves brave/brave-browser#39621
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 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:
Test case 1
Settings
->New Tab Page
. Make sure that Background Image Type isSponsored
.EXPECTATION: There should be a log line:
[ads] Successfully initialized ads
EXPECTATION: There should be a log lines:
EXPECTATION: There should be a log lines:
Test case 2
Settings
->New Tab Page
. Change Background Image Type isDefault Images
.EXPECTATION: There should be a log line:
[ads] Successfully initialized ads
EXPECTATION: There should be a log lines:
EXPECTATION: There should be a log lines: