-
Notifications
You must be signed in to change notification settings - Fork 900
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
Update default search for 5 regions #10326
Conversation
2184f56
to
6c29134
Compare
6c29134
to
2058682
Compare
@@ -132,6 +133,8 @@ | |||
BraveRewardsObserver, BraveRewardsNativeWorker.PublisherObserver { | |||
public static final String PREF_HIDE_BRAVE_REWARDS_ICON = "hide_brave_rewards_icon"; | |||
private static final String JAPAN_COUNTRY_CODE = "JP"; | |||
private static final List<String> mBraveSearchEngineDefaultRegions = | |||
Arrays.asList("CA", "DE", "FR", "GB", "US"); |
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.
Besides these, I think we also need remove the US
/CA
restriction we added in 4808157 (to android/java/org/chromium/chrome/browser/onboarding/SearchEngineOnboardingFragment.java
)
That way we can show Brave Search for all other regions (which don't have Brave Search as default)
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.
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
lgtm. in general also lgtm.
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, just had one minor nit.
@@ -41,6 +41,7 @@ declare namespace Welcome { | |||
|
|||
export interface State { | |||
searchProviders: Array<SearchEngineEntry> | |||
browserProfiles: Array<BrowserProfile> | |||
browserProfiles: Array<BrowserProfile>, |
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: I don't think you need a comma here...
…wnHost` Fixes brave/brave-browser#18606 Unintentionally caused by #10326 - CI showed a clean run? this should have failed :/ - DefaultAPIVisibleKnownHost was failing on can it set brave.com as default. It can't, because after 10326 it's ALREADY default
Case brave/brave-browser#18331 (Update SE defaults) - DesktopVerification PASSED on
Found brave/brave-browser#18683 & brave/brave-browser#18720 while running through brave/brave-browser#18331. Upgrades for
|
Default Upgrade |
Custom Upgrade |
---|---|
USA
Clean Install:
- ensured that the search section under
brave://welcome
was removed (Cases/Screenshots below) - ensured that Brave is the default SE on a clean profile
- ensured that Brave appears as the default SE under
brave://settings/search
Upgrade Case (Default/Custom SE):
- installed
1.32.45 Chromium: 94.0.4606.71
and ensured that the default SE is set asGoogle
- upgraded to
1.32.63 Chromium: 95.0.4638.40
and ensured thatGoogle
was still the default SE after upgrading - installed
1.32.45 Chromium: 94.0.4606.71
and selectedStartpage
as the default SE frombrave://settings/search
- upgraded to
1.32.63 Chromium: 95.0.4638.40
and ensured thatStartpage
was still the default SE after upgrading
Default Upgrade |
Custom Upgrade |
---|---|
GB
Clean Install:
- ensured that the search section under
brave://welcome
was removed (Cases/Screenshots below) - ensured that Brave is the default SE on a clean profile
- ensured that Brave appears as the default SE under
brave://settings/search
Upgrade Case (Default/Custom SE):
- installed
1.32.45 Chromium: 94.0.4606.71
and ensured that the default SE is set asGoogle
- upgraded to
1.32.63 Chromium: 95.0.4638.40
and ensured thatGoogle
was still the default SE after upgrading - installed
1.32.45 Chromium: 94.0.4606.71
and selectedEcosia
as the default SE frombrave://settings/search
- upgraded to
1.32.63 Chromium: 95.0.4638.40
and ensured thatEcosia
was still the default SE after upgrading
Default Upgrade |
Custom Upgrade |
---|---|
France
Clean Install:
- ensured that the search section under
brave://welcome
was removed (Cases/Screenshots below) - ensured that Brave is the default SE on a clean profile
- ensured that Brave appears as the default SE under
brave://settings/search
Upgrade Case (Default/Custom SE):
- installed
1.32.45 Chromium: 94.0.4606.71
and ensured that the default SE is set asQwant
- upgraded to
1.32.63 Chromium: 95.0.4638.40
and ensured thatQwant
was still the default SE after upgrading - installed
1.32.45 Chromium: 94.0.4606.71
and selectedEcosia
as the default SE frombrave://settings/search
- upgraded to
1.32.63 Chromium: 95.0.4638.40
and ensured thatEcosia
was still the default SE after upgrading
Default Upgrade |
Custom Upgrade |
---|---|
Germany
Clean Install:
- ensured that the search section under
brave://welcome
was removed (Cases/Screenshots below) - ensured that Brave is the default SE on a clean profile
- ensured that Brave appears as the default SE under
brave://settings/search
Upgrade Case (Default/Custom SE)
- installed
1.32.45 Chromium: 94.0.4606.71
and ensured that the default SE is set asGoogle
- upgraded to
1.32.63 Chromium: 95.0.4638.40
and ensured thatGoogle
was still the default SE after upgrading - installed
1.32.45 Chromium: 94.0.4606.71
and selectedBrave
as the default SE frombrave://settings/search
- upgraded to
1.32.63 Chromium: 95.0.4638.40
and ensured thatBrave
was still the default SE after upgrading
Default Upgrade |
Custom Upgrade |
---|---|
Case brave/brave-browser#18331 (Update SE defaults) - Android
Verification PASSED on Samsung S10+
running Android 11
using the following build:
Brave | 1.32.63 Chromium: 95.0.4638.40 (Official Build) nightly (64-bit)
-- | --
Revision | e3e7c76ba0284b16087cf4cf3153abfaef6470c7-refs/branch-heads/4638@{#624}
OS | Windows 11 Version 21H2 (Build 22000.194)
Upgrades for CA
/ DE
/ FR
/ GB
/ US
Canada
Clean Install:
- ensured that the search on-boarding modal was removed when tapping on the URL bar (Cases/Screenshots below)
- ensured that Brave is the default SE on a clean profile
- ensured that Brave appears as the default SE under
Settings
->Search engine
for bothStandard
&Private
tabs/windows
Standard |
Private |
---|---|
Upgrade Case (Default/Custom SE):
- installed
1.32.44 Chromium: 94.0.4606.71
and ensured that the default SE is set asGoogle
- upgraded to
1.32.66 Chromium: 95.0.4638.40
and ensured thatGoogle
was still the default SE after upgrading - installed
1.32.44 Chromium: 94.0.4606.71
and selectedBing
as the default SE for bothStandard
&Private
- upgraded to
1.32.66 Chromium: 95.0.4638.40
and ensured thatBing
was still the default SE after upgrading
USA
Clean Install:
- ensured that the search on-boarding modal was removed when tapping on the URL bar (Cases/Screenshots below)
- ensured that Brave is the default SE on a clean profile
- ensured that Brave appears as the default SE under
Settings
->Search engine
for bothStandard
&Private
tabs/windows
Standard |
Private |
---|---|
Upgrade Case (Default/Custom SE):
- installed
1.32.44 Chromium: 94.0.4606.71
and ensured that the default SE is set asGoogle
- upgraded to
1.32.66 Chromium: 95.0.4638.40
and ensured thatGoogle
was still the default SE after upgrading - installed
1.32.44 Chromium: 94.0.4606.71
and selectedBrave
as the default SE forStandard
&Startpage
forPrivate
- upgraded to
1.32.66 Chromium: 95.0.4638.40
and ensured thatBrave
&Startpage
were still the default SE
GB
Clean Install:
- ensured that the search on-boarding modal was removed when tapping on the URL bar (Cases/Screenshots below)
- ensured that Brave is the default SE on a clean profile
- ensured that Brave appears as the default SE under
Settings
->Search engine
for bothStandard
&Private
tabs/windows
Standard |
Private |
---|---|
Upgrade Case (Default/Custom SE):
- installed
1.32.44 Chromium: 94.0.4606.71
and ensured that the default SE is set asGoogle
- upgraded to
1.32.66 Chromium: 95.0.4638.40
and ensured thatGoogle
was still the default SE after upgrading - installed
1.32.44 Chromium: 94.0.4606.71
and selectedQwant
as the default SE forStandard
&Ecosia
forPrivate
- upgraded to
1.32.66 Chromium: 95.0.4638.40
and ensured thatQwant
&Ecosia
were still the default SE
France
Clean Install:
- ensured that the search on-boarding modal was removed when tapping on the URL bar (Cases/Screenshots below)
- ensured that Brave is the default SE on a clean profile
- ensured that Brave appears as the default SE under
Settings
->Search engine
for bothStandard
&Private
tabs/windows
Standard |
Private |
---|---|
Upgrade Case (Default/Custom SE):
- installed
1.32.44 Chromium: 94.0.4606.71
and ensured that the default SE is set asQwant
- upgraded to
1.32.66 Chromium: 95.0.4638.40
and ensured thatQwant
was still the default SE after upgrading - installed
1.32.44 Chromium: 94.0.4606.71
and selectedDDG
as the default SE forStandard
&Bing
forPrivate
- upgraded to
1.32.66 Chromium: 95.0.4638.40
and ensured thatDDG
&Bing
were still the default SE
Germany
Clean Install:
- ensured that the search on-boarding modal was removed when tapping on the URL bar (Cases/Screenshots below)
- ensured that Brave is the default SE on a clean profile
- ensured that Brave appears as the default SE under
Settings
->Search engine
for bothStandard
&Private
tabs/windows
Standard |
Private |
---|---|
Upgrade Case (Default/Custom SE):
- installed
1.32.44 Chromium: 94.0.4606.71
and ensured that the default SE is set asGoogle
- upgraded to
1.32.66 Chromium: 95.0.4638.40
and ensured thatGoogle
was still the default SE after upgrading - installed
1.32.44 Chromium: 94.0.4606.71
and selectedBing
as the default SE forBrave
&Ecosia
forPrivate
- upgraded to
1.32.66 Chromium: 95.0.4638.40
and ensured thatBing
&Brave
were still the default SE
Regions other than CA
/ DE
/ FR
/ GB
/ US
- ensured that the on-boarding modal is displayed when a user taps on the URL bar
- ensured that
Brave
search doesn't appear under the on-boarding modal - ensured that
Brave
search appears at the top under bothNormal
&Private
windows viaSettings
->Search engines
Spain
On-boarding |
Normal Window |
Private Window |
---|---|---|
Poland
On-boarding |
Normal Window |
Private Window |
---|---|---|
Russia
On-boarding |
Normal Window |
Private Window |
---|---|---|
Kazakhstan
On-boarding |
Normal Window |
Private Window |
---|---|---|
Case brave/brave-browser#18415 (Removed from brave://welcome
)
Verification PASSED on Win 11 x64
using the following build:
Brave | 1.32.61 Chromium: 95.0.4638.40 (Official Build) nightly (64-bit)
-- | --
Revision | e3e7c76ba0284b16087cf4cf3153abfaef6470c7-refs/branch-heads/4638@{#624}
OS | Windows 11 Version 21H2 (Build 22000.194)
- ensured that
CA
,USA
,GB
,DE
&FR
are not displaying the search engine selection screen underbrave://welcome
Search section being removed from brave://welcome
CA |
USA |
GB |
DE |
FR |
---|---|---|---|---|
Search section shouldn't be removed from brave://welcome
- ensured that locales such as
Poland
&Spain
still have the search engine selection section underbrave://welcome
Poland |
Spain |
---|---|
Case brave/brave-browser#18452 (Removed on-boarding when tapping on URL)
Verification PASSED on Samsung S10+
running Android 11
using the following build:
1.32.61 Chromium: 95.0.4638.40
- ensured that the search on-boarding was removed from
CA
,USA
,GB
,DE
&FR
when tapping on the URL bar - ensured that the search on-boarding was was being displayed for both
Poland
&Spain
locales
Example of locales that still have on-boarding enabled when tapping on the URL bar:
Poland |
Spain |
---|---|
This was missed in #10326 Fixes brave/brave-browser#18683
Fixes brave/brave-browser#18331
Fixes brave/brave-browser#18415
Fixes brave/brave-browser#18452
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: