-
Notifications
You must be signed in to change notification settings - Fork 909
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
remove Set default search engine screen for AT / ES / MX #14177
Conversation
716505c
to
dd38ef0
Compare
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.
Perfect! ++
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.
Can we also handle brave/brave-browser#23814 in here too?
Apologies for missing that 😢
A Storybook has been deployed to preview UI for the latest push |
done |
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.
Perfect 😄👍
A Storybook has been deployed to preview UI for the latest push |
@brave/chromium-src-reviewers can someone take a look pls? thanks! |
A Storybook has been deployed to preview UI for the latest push |
|
||
if (version > 16) { | ||
static const base::NoDestructor< | ||
base::flat_map<int, BravePrepopulatedEngineID>> |
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.
could be constexpr fixed_flat_map
?
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.
it says that Non-constexpr constructor 'flat_tree' cannot be used in a constant expression
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 mean, using base::MakeFixedFlatMap
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.
done, thanks!
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.
Nice! Didn't know about base::MakeFixedFlatMap
😄👍
A Storybook has been deployed to preview UI for the latest push |
Verification PASSED on
|
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Case #2
- brave/brave-browser#23814
Clean Profile
- ensured that
Brave
was selected as the default for both Normal/Private windows viabrave://settings/searchEngines
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Updated Profile (Google/Google)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Google
was the default SE selected underbrave://settings/searchEngines
- updated to
1.43.42 Chromium: 103.0.5060.134
and ensured thatGoogle
is still the default SE- ensured that it wasn't replaced by
Brave
- ensured that it wasn't replaced by
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Example (Brave at top of list) |
Example (Brave at top of list) |
---|---|
![]() |
![]() |
Updated Profile (Startpage/DDG)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Startpage
was the default SE selected underbrave://settings/searchEngines
forNormal
windows - ensured that
DDG
was the default SE selected underbrave://settings/searchEngines
forPrivate
windows - updated to
1.43.42 Chromium: 103.0.5060.134
and ensured that both SE engines were still selected as the default- ensured that it wasn't replaced by
Brave
- ensured that it wasn't replaced by
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Updated Profile (Ecosia/Qwant)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Ecosia
was the default SE selected underbrave://settings/searchEngines
forNormal
windows - ensured that
Qwant
was the default SE selected underbrave://settings/searchEngines
forPrivate
windows - updated to
1.43.42 Chromium: 103.0.5060.134
and ensured that both SE engines were still selected as the default- ensured that it wasn't replaced by
Brave
- ensured that it wasn't replaced by
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
ES (Spain) locale
Case #1
- brave/brave-browser#23908
brave://welcome
Using the STR/Cases outlined via brave/brave-browser#23908 (comment) and ensured that the Set default search engine screen
was removed from brave://welcome
as per the following:
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Case #2
- brave/brave-browser#23814
Clean Profile
- ensured that
Brave
was selected as the default for both Normal/Private windows viabrave://settings/searchEngines
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Updated Profile (Google/Google)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Google
was the default SE selected underbrave://settings/searchEngines
- updated to
1.43.42 Chromium: 103.0.5060.134
and ensured thatGoogle
is still the default SE- ensured that it wasn't replaced by
Brave
- ensured that it wasn't replaced by
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Example (Brave at top of list) |
Example (Brave at top of list) |
---|---|
![]() |
![]() |
Updated Profile (Bing/Brave)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Bing
was the default SE selected underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the default SE selected underbrave://settings/searchEngines
forPrivate
windows - updated to
1.43.42 Chromium: 103.0.5060.134
and ensured that both SE engines were still selected as the default - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Updated Profile (DDG/DDG)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
DDG
was the default SE selected underbrave://settings/searchEngines
forNormal
windows - ensured that
DDG
was the default SE selected underbrave://settings/searchEngines
forPrivate
windows - updated to
1.43.42 Chromium: 103.0.5060.134
and ensured that both SE engines were still selected as the default- ensured that it wasn't replaced by
Brave
- ensured that it wasn't replaced by
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
MX (Mexico) locale
Case #1
- brave/brave-browser#23908
brave://welcome
Using the STR/Cases outlined via brave/brave-browser#23908 (comment) and ensured that the Set default search engine screen
was removed from brave://welcome
as per the following:
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Case #2
- brave/brave-browser#23814
Clean Profile
- ensured that
Brave
was selected as the default for both Normal/Private windows viabrave://settings/searchEngines
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Updated Profile (Google/Google)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Google
was the default SE selected underbrave://settings/searchEngines
- updated to
1.43.42 Chromium: 103.0.5060.134
and ensured thatGoogle
is still the default SE- ensured that it wasn't replaced by
Brave
- ensured that it wasn't replaced by
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Example (Brave at top of list) |
Example (Brave at top of list) |
---|---|
![]() |
![]() |
Updated Profile (Qwant/Startpage)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Qwant
was the default SE selected underbrave://settings/searchEngines
forNormal
windows - ensured that
Startpage
was the default SE selected underbrave://settings/searchEngines
forPrivate
windows - updated to
1.43.42 Chromium: 103.0.5060.134
and ensured that both SE engines were still selected as the default- ensured that it wasn't replaced by
Brave
- ensured that it wasn't replaced by
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Updated Profile (Bing/Bing)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Bing
was the default SE selected underbrave://settings/searchEngines
forNormal
windows - ensured that
Bing
was the default SE selected underbrave://settings/searchEngines
forPrivate
windows - updated to
1.43.42 Chromium: 103.0.5060.134
and ensured that both SE engines were still selected as the default - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
As per brave/brave-browser#23908, ensured that locales from CA / DE / FR / GB / US
are not displaying the Set default search engine screen
via brave://welcome
(onboarding).
CA (Canada) locale
Case #1
- brave/brave-browser#23908
brave://welcome
Using the STR/Cases outlined via brave/brave-browser#23908 (comment) and ensured that the Set default search engine screen
was removed from brave://welcome
as per the following:
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Case #2
- brave/brave-browser#23814
Clean Profile
- ensured that
Brave
was selected as the default for both Normal/Private windows viabrave://settings/searchEngines
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Updated Profile (Brave/Brave)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Brave
was the default SE selected underbrave://settings/searchEngines
- updated to
1.43.42 Chromium: 103.0.5060.134
and ensured thatBrave
is still the default SE - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Example (Brave at top of list) |
Example (Brave at top of list) |
---|---|
![]() |
![]() |
Updated Profile (DDG/Startpage)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
DDG
was the default SE selected underbrave://settings/searchEngines
forNormal
windows - ensured that
Startpage
was the default SE selected underbrave://settings/searchEngines
forPrivate
windows - updated to
1.43.42 Chromium: 103.0.5060.134
and ensured that both SE engines were still selected as the default- ensured that it wasn't replaced by
Brave
- ensured that it wasn't replaced by
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
FR (France) locale
Case #1
- brave/brave-browser#23908
brave://welcome
Using the STR/Cases outlined via brave/brave-browser#23908 (comment) and ensured that the Set default search engine screen
was removed from brave://welcome
as per the following:
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Case #2
- brave/brave-browser#23814
Clean Profile
- ensured that
Brave
was selected as the default for both Normal/Private windows viabrave://settings/searchEngines
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Updated Profile (Brave/Brave)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Brave
was the default SE selected underbrave://settings/searchEngines
- updated to
1.43.42 Chromium: 103.0.5060.134
and ensured thatBrave
is still the default SE - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Example (Brave at top of list) |
Example (Brave at top of list) |
---|---|
![]() |
![]() |
Updated Profile (Google/Ecosia)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
DDG
was the default SE selected underbrave://settings/searchEngines
forNormal
windows - ensured that
Startpage
was the default SE selected underbrave://settings/searchEngines
forPrivate
windows - updated to
1.43.42 Chromium: 103.0.5060.134
and ensured that both SE engines were still selected as the default- ensured that it wasn't replaced by
Brave
- ensured that it wasn't replaced by
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Checking to ensure that locales that don't have Brave Search as the default and still have the Set default search engine screen
screen via brave://welcome
(onboarding) are working as expected.
JP (Japan) locale
Case #1
- brave/brave-browser#23908
brave://welcome
Using the STR/Cases outlined via brave/brave-browser#23908 (comment) and ensured that the Set default search engine screen
was removed from brave://welcome
as per the following:
Example |
Example |
Example |
Example |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Case #2
- brave/brave-browser#23814
Clean Profile
- ensured that
Google
was selected as the default for both Normal/Private windows viabrave://settings/searchEngines
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Updated Profile (Google/Google)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Google
was the default SE selected underbrave://settings/searchEngines
- updated to
1.43.42 Chromium: 103.0.5060.134
and ensured thatBrave
is still the default SE - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Example (Brave at top of list) |
Example (Brave at top of list) |
---|---|
![]() |
![]() |
Updated Profile (Qwant/Bing)
- installed
1.43.31 Chromium: 103.0.5060.114
- ensured that
Qwant
was the default SE selected underbrave://settings/searchEngines
forNormal
windows - ensured that
Bing
was the default SE selected underbrave://settings/searchEngines
forPrivate
windows - updated to
1.43.42 Chromium: 103.0.5060.134
and ensured that both SE engines were still selected as the default- ensured that it wasn't replaced by
Brave
- ensured that it wasn't replaced by
- ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forNormal
windows - ensured that
Brave
was the first engine via the drop down list underbrave://settings/searchEngines
forPrivate
windows
1.43.31 Chromium: 103.0.5060.114 |
1.43.42 Chromium: 103.0.5060.134 |
---|---|
![]() |
![]() |
Resolves brave/brave-browser#23908
Resolves brave/brave-browser#23814
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: