-
Notifications
You must be signed in to change notification settings - Fork 859
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
Fixed NTP shows same background images #19896
Conversation
fix brave/brave-browser#32359 Sometimes we could meet the condition that ViewCounterModel::count_to_branded_wallpaper_ is zero and no SI campaign. When this happens, we didn't increase background wallpaper index. This caused showing same background image till new campaign starts. We should increase background images index in this situation also.
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++
Verification PASSED on
Using the STR/Cases outlined via #19896 (comment), reproduced the original issue running
-.Brave.2023-09-07.17-33-36.mp4
|
Uplift of #19896 (squashed) to beta
fix brave/brave-browser#32359
Sometimes we could meet the condition that
ViewCounterModel::count_to_branded_wallpaper_ is zero and no SI campaign.
When this happens, we didn't increase background wallpaper index.
This caused showing same background image till new campaign starts.
We should increase background images index in this situation also.
Resolves
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:
ViewCounterModelTest.NTPBackgroundImagesWithEmptyCampaignTest
Manual test.
With this condition, NTP SI will be shown at next NTP reloading or opening
To test more easily, we could edit
Preferences
file manually instead of above stepcount_to_branded_wallpaper
value in user dir'sPreferences
file