Skip to content
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

Merged
merged 4 commits into from
Jul 19, 2022

Conversation

spylogsster
Copy link
Contributor

@spylogsster spylogsster commented Jul 14, 2022

Resolves brave/brave-browser#23908
Resolves brave/brave-browser#23814

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

  • same as in issue

@spylogsster spylogsster requested a review from bsclifton July 14, 2022 12:38
@spylogsster spylogsster self-assigned this Jul 14, 2022
@github-actions github-actions bot added the CI/storybook-url Deploy storybook and provide a unique URL for each build label Jul 14, 2022
@spylogsster spylogsster added this to the 1.43.x - Nightly milestone Jul 14, 2022
@spylogsster spylogsster force-pushed the brave-23908 branch 2 times, most recently from 716505c to dd38ef0 Compare July 14, 2022 12:43
@brave-builds
Copy link
Collaborator

A Storybook has been deployed to preview UI for the latest push

Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! ++

@brave-builds
Copy link
Collaborator

A Storybook has been deployed to preview UI for the latest push

Copy link
Member

@bsclifton bsclifton left a 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 😢

@spylogsster spylogsster requested a review from a team as a code owner July 15, 2022 10:37
@brave-builds
Copy link
Collaborator

A Storybook has been deployed to preview UI for the latest push

@spylogsster
Copy link
Contributor Author

Can we also handle brave/brave-browser#23814 in here too?

Apologies for missing that 😢

done

@brave-builds
Copy link
Collaborator

A Storybook has been deployed to preview UI for the latest push

Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect 😄👍

@brave-builds
Copy link
Collaborator

A Storybook has been deployed to preview UI for the latest push

@spylogsster
Copy link
Contributor Author

@brave/chromium-src-reviewers can someone take a look pls? thanks!

@brave-builds
Copy link
Collaborator

A Storybook has been deployed to preview UI for the latest push


if (version > 16) {
static const base::NoDestructor<
base::flat_map<int, BravePrepopulatedEngineID>>
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, thanks!

Copy link
Member

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 😄👍

@brave-builds
Copy link
Collaborator

A Storybook has been deployed to preview UI for the latest push

@spylogsster spylogsster merged commit 72dcf21 into master Jul 19, 2022
@spylogsster spylogsster deleted the brave-23908 branch July 19, 2022 20:36
@spylogsster spylogsster restored the brave-23908 branch July 20, 2022 16:00
brave-builds pushed a commit that referenced this pull request Jul 20, 2022
@kjozwiak
Copy link
Member

kjozwiak commented Jul 26, 2022

Verification PASSED on Win 11 x64 using the following build(s):

Brave | 1.43.42 Chromium: 103.0.5060.134 (Official Build) nightly (64-bit)
-- | --
Revision | 8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}
OS | Windows 11 Version 21H2 (Build 22000.795)

AT (Austria) 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
ATonboarding1 ATonboarding2 ATonboarding3

Case #2 - brave/brave-browser#23814

Clean Profile
  • ensured that Brave was selected as the default for both Normal/Private windows via brave://settings/searchEngines
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
Example Example Example
ATdefaultSearchSettings bravetop1 bravetop2
Updated Profile (Google/Google)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Google was the default SE selected under brave://settings/searchEngines
  • updated to 1.43.42 Chromium: 103.0.5060.134 and ensured that Google is still the default SE
    • ensured that it wasn't replaced by Brave
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
ATseBeforeUpdateGoogle ATseAfterUpdateGoogle
Example (Brave at top of list) Example (Brave at top of list)
bravetopUpgrade1 bravetopUpgrade2
Updated Profile (Startpage/DDG)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Startpage was the default SE selected under brave://settings/searchEngines for Normal windows
  • ensured that DDG was the default SE selected under brave://settings/searchEngines for Private 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 Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
ATseBeforeUpdate1 ATseAfterUpdate1
Updated Profile (Ecosia/Qwant)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Ecosia was the default SE selected under brave://settings/searchEngines for Normal windows
  • ensured that Qwant was the default SE selected under brave://settings/searchEngines for Private 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 Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
ATseBeforeUpdate2 ATseAfterUpdate2

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
esOnboarding1 esOnboarding2 esOnboarding3

Case #2 - brave/brave-browser#23814

Clean Profile
  • ensured that Brave was selected as the default for both Normal/Private windows via brave://settings/searchEngines
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
Example Example Example
esDefaultSearchCleanProfile esBraveTopClean1 esBraveTopClean2
Updated Profile (Google/Google)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Google was the default SE selected under brave://settings/searchEngines
  • updated to 1.43.42 Chromium: 103.0.5060.134 and ensured that Google is still the default SE
    • ensured that it wasn't replaced by Brave
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
esBeforeUpdateGoogle esBeforeAfterGoogle
Example (Brave at top of list) Example (Brave at top of list)
esGoogleTopUpdate1 esGoogleTopUpdate2
Updated Profile (Bing/Brave)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Bing was the default SE selected under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the default SE selected under brave://settings/searchEngines for Private 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 under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
esBeforeUpdate1 esAfterUpdate1
Updated Profile (DDG/DDG)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that DDG was the default SE selected under brave://settings/searchEngines for Normal windows
  • ensured that DDG was the default SE selected under brave://settings/searchEngines for Private 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 Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
esBeforeUpdate2 esAfterUpdate2

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
mxOnboarding1 mxOnboarding2 mxOnboarding3

Case #2 - brave/brave-browser#23814

Clean Profile
  • ensured that Brave was selected as the default for both Normal/Private windows via brave://settings/searchEngines
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
Example Example Example
mxCleanProfileDefaultSearch cleanProfileBraveTop1 cleanProfileBraveTop2
Updated Profile (Google/Google)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Google was the default SE selected under brave://settings/searchEngines
  • updated to 1.43.42 Chromium: 103.0.5060.134 and ensured that Google is still the default SE
    • ensured that it wasn't replaced by Brave
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
mxUpdateBeforeGoogle mxAfterBeforeGoogle
Example (Brave at top of list) Example (Brave at top of list)
mxGoogleTop1 mxGoogleTop2
Updated Profile (Qwant/Startpage)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Qwant was the default SE selected under brave://settings/searchEngines for Normal windows
  • ensured that Startpage was the default SE selected under brave://settings/searchEngines for Private 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 Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
mxBeforeUpdate1 mxAfterUpdate1
Updated Profile (Bing/Bing)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Bing was the default SE selected under brave://settings/searchEngines for Normal windows
  • ensured that Bing was the default SE selected under brave://settings/searchEngines for Private 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 under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
mxBeforeUpdate2 mxAfterUpdate2

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
caOnboarding1 caOnboarding2 caOnboarding3

Case #2 - brave/brave-browser#23814

Clean Profile
  • ensured that Brave was selected as the default for both Normal/Private windows via brave://settings/searchEngines
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
Example Example Example
caDefaultProfileBrave caDefaultProfileTop1 caDefaultProfileTop2
Updated Profile (Brave/Brave)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Brave was the default SE selected under brave://settings/searchEngines
  • updated to 1.43.42 Chromium: 103.0.5060.134 and ensured that Brave is still the default SE
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
caBeforeUpdateBrave caAfterUpdateBrave
Example (Brave at top of list) Example (Brave at top of list)
bravetop1 bravetop2
Updated Profile (DDG/Startpage)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that DDG was the default SE selected under brave://settings/searchEngines for Normal windows
  • ensured that Startpage was the default SE selected under brave://settings/searchEngines for Private 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 Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
caBeforeUpdate1 caAfterUpdate1

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
frOnboarding1 frOnboarding2 frOnboarding3

Case #2 - brave/brave-browser#23814

Clean Profile
  • ensured that Brave was selected as the default for both Normal/Private windows via brave://settings/searchEngines
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
Example Example Example
frDefaultProfileBrave frDefaultProfileBraveTop1 frDefaultProfileBraveTop2
Updated Profile (Brave/Brave)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Brave was the default SE selected under brave://settings/searchEngines
  • updated to 1.43.42 Chromium: 103.0.5060.134 and ensured that Brave is still the default SE
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
frBeforeUpdateBrave1 frAfterUpdateBrave1
Example (Brave at top of list) Example (Brave at top of list)
BraveTop1 BraveTop2
Updated Profile (Google/Ecosia)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that DDG was the default SE selected under brave://settings/searchEngines for Normal windows
  • ensured that Startpage was the default SE selected under brave://settings/searchEngines for Private 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 Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
frBeforeUpdate1 frAfterUpdate1

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
jpOnboarding1 jpOnboarding2 jpOnboarding3 jpOnboarding4

Case #2 - brave/brave-browser#23814

Clean Profile
  • ensured that Google was selected as the default for both Normal/Private windows via brave://settings/searchEngines
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
Example Example Example
jpDefaultSEcleanProfile jpDefaultSEcleanProfileTop1 jpDefaultSEcleanProfileTop2
Updated Profile (Google/Google)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Google was the default SE selected under brave://settings/searchEngines
  • updated to 1.43.42 Chromium: 103.0.5060.134 and ensured that Brave is still the default SE
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
jpBeforeUpdateGoogle jpAfterUpdateGoogle
Example (Brave at top of list) Example (Brave at top of list)
braveTop1 braveTop2
Updated Profile (Qwant/Bing)
  • installed 1.43.31 Chromium: 103.0.5060.114
  • ensured that Qwant was the default SE selected under brave://settings/searchEngines for Normal windows
  • ensured that Bing was the default SE selected under brave://settings/searchEngines for Private 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 Brave was the first engine via the drop down list under brave://settings/searchEngines for Normal windows
  • ensured that Brave was the first engine via the drop down list under brave://settings/searchEngines for Private windows
1.43.31 Chromium: 103.0.5060.114 1.43.42 Chromium: 103.0.5060.134
jpBeforeUpdate1 jpAfterUpdate1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/storybook-url Deploy storybook and provide a unique URL for each build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove Set default search engine screen for AT / ES / MX Update search engine defaults for AT / ES / MX
5 participants