-
Notifications
You must be signed in to change notification settings - Fork 905
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
Always pass "Background Wallpaper" even when we use "Sponsored image" #15119
Conversation
a8b85a2
to
2c2b1c3
Compare
This data is required for Background chooser to be able to know which wallpaper is currently set.
2c2b1c3
to
7013f92
Compare
A Storybook has been deployed to preview UI for the latest push |
@simonhong Could you take a look at this please? |
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.
++
wallpaper.Set(kBackgroundWallpaperKey, std::move(*data)); | ||
ResolveJavascriptCallback(args[0], base::Value(std::move(wallpaper))); | ||
return; | ||
} | ||
|
||
// Even though we show sponsored image, we should pass "Background wallpaper" | ||
// data so that NTP can know which wallpaper is selected by users. |
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.
nit: NTP customization menu
would be better for understanding instead of NTP
?
A Storybook has been deployed to preview UI for the latest push |
Filled reviewer's checklist on behalf of @simonhong |
This data is required for Background chooser to be able to know which wallpaper is currently set.
Resolves brave/brave-browser#25398
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
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: