Commit Graph
4089 Commits
Author SHA1 Message Date
deeppandya a9fbfc6537 Resolve billing client issues
Resolve presubmit error
2024-07-29 22:47:10 +05:30
4ddbd94fef feat(wallet): remove Goerli network (#24438)
* feat(wallet): remove Goerli network

* Fix unit-tests

* fix iOS build.

* Remove Goerli usage in Android

* Apply code formatting

* Apply code formatting second round

* Apply code formatting third round

* review(simoarpe): remove TokenUtils.getAllTokens

* Fix android lint errors

* Apply code formatting

* fix unit tests

---------

Co-authored-by: Nuo Xu <nuoxu.nx@gmail.com>
Co-authored-by: Simone Arpe <simon.arpe@gmail.com>
2024-07-24 11:52:21 +02:00
samartnik 9eabe3c04c [Android] Fix for incorrect billing library version (#24721) 2024-07-17 21:29:41 -04:00
deeppandya 5a77892812 Update day zero behaviour
Address PR comments
2024-07-17 18:42:44 +05:30
deeppandya 5b3ad34372 Add day zero behaviour changes
Remove commented code

Change class name for DayZeroHelper

Resolve presumit errors
2024-07-17 18:42:30 +05:30
deeppandya 5a32738952 Add command line option for day zero timing
Remove changes for topsites and stats
2024-07-17 18:42:26 +05:30
deeppandya 6062787818 Add pref changes for android day zero expt
Remove rewards bottom banner as it's onselete

Refactor NTPUtil class
2024-07-17 18:42:23 +05:30
deeppandya 4c1b5591e1 Add changes for android day zero function 2024-07-17 18:42:15 +05:30
deeppandya 9f4ba1428a Add mojom interface to android for day zero experience 2024-07-17 18:42:12 +05:30
deeppandya 64128ed913 Update version in manifest metadata for billing client 2024-07-13 00:53:21 +05:30
5a6b15f546 Update from Chromium 127.0.6533.26 to Chromium 127.0.6533.43. (#24585)
* Update from Chromium 127.0.6533.26 to Chromium 127.0.6533.43.

* Conflict-resolved patches from Chromium 127.0.6533.26 to Chromium 127.0.6533.43.

* Update patches from Chromium 127.0.6533.26 to Chromium 127.0.6533.43.

* Updated strings for Chromium 127.0.6533.43.

* Move tab search alignment override

This override used to be a static function, however now it relies on the
value stored in a global in a different file. This change moves the
override to a new location to cancel the alignment.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/0f49c359318fb8ac60b6f8de2b9142cdde2f210b

commit 0f49c359318fb8ac60b6f8de2b9142cdde2f210b
Author: David Pennington <dpenning@chromium.org>
Date:   Wed Jun 26 00:52:03 2024 +0000

    [TabSearchPosition] Change the tab search position based off of the pref

    Use the pref in the settings page to set the initial position of the
    tab search button.

    Bug: 338622527

* `SidePanelUI::GetSidePanelUIForBrowser` deleted

Access to the sidepanel pointer is supposed to be through the browser
instance now.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/dda455db11b61d29a64ca80826eb1359d24b582a

commit dda455db11b61d29a64ca80826eb1359d24b582a
Author: Erik Chen <erikchen@chromium.org>
Date:   Tue Jun 11 21:53:21 2024 +0000

    Remove static accessors from SidePanelUI.

    This CL is a refactor with no intended behavior change.

    This CL turns SidePanelUI into an abstract base class. This CL modifies
    BrowserWindowFeatures to own an instance of SidePanelCoordinator.
    SidePanelUI static accessors are redirected to use
    BrowserWindowFeatures.

    There are slight timing differences to construction and destruction of
    SidePanelCoordinator, which should have no user-visible effect. This CL
    introduces the methods InitPostBrowserViewConstruction and
    TearDownPreBrowserViewDestruction to BrowserWindowFeatures to handle
    this more generically.

    Change-Id: Ic3565fa4ff8d6b57f301f51b2bb9d9d3ed8b2f09
    Bug: 346148554, 346158959, 345499793

* Browser actions initialization was moved out of class c'tor.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/63f9a1d81a696de43f9aa6a3c4a5aa0e0a57ab17

commit 63f9a1d81a696de43f9aa6a3c4a5aa0e0a57ab17
Author: Erik Chen <erikchen@chromium.org>
Date:   Tue Jun 11 22:19:32 2024 +0000

    [lensoverlay] Simplify LensOverlaySidePanelCoordinator.

    This CL is a refactor with no intended behavior change. It makes 5
    changes:

    (1) Dynamic state from LensOverlayController was being stored on
    LensOverlaySidePanelCoordinator as fixed members. This introduces the
    potential for state mismatch. This state mismatch is one of the reasons
    we had to disable tab dragging for chromnient. These members were
    deleted, and all state is fetched dynamically.

    (2) Removed conditionals that always evaluated to false.

    (3) Inlined and simplified CreateSidePanelActionCallback.

    (4) Pass around content::BrowserContext instead of Profile when
    possible.

    (5) Initialize BrowserActions after BrowserWindowFeatures.

    Bug: 339497734, 342921671

* [Android] [Tab Group Sync] Add and update metrics

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/21f46a1beb022ef6fe8ab989750a2ee85029ef54

[M127][Tab Group Sync] Add and update metrics

* Move TabGroups.UserGroupCount to be form-factor agnostic.
* Record whether a tab group is local or remote when a tab is selected.
* Add metrics for rename dialog usage.
* Record when sync creates a new tab group.
* Record when the tab group name is reset.
* Record when we close vs delete a local version of a synced tab group.

(cherry picked from commit ad1292750543d8f9673d11efdcf71d8601c8a2a6)

Bug: 348687061

* Side panel position strings have changed.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/30404c2dfea7a8af429dd8442343e9d4857631e2

commit 30404c2dfea7a8af429dd8442343e9d4857631e2
Author: David Pennington <dpenning@chromium.org>
Date:   Fri Jun 14 19:38:23 2024 +0000

    [TabSearchPosition] Update the sidepanel position to a dropdown

    Before changing the tab search button position to a dropdown, the side
    panel position option text is updated, and changed to be a dropdown.
    text is changed so that it can be used across the 2 options.

    image in bug.

    Bug: 338622527

* Disables crashing upstream unit tests.

---------

Co-authored-by: mkarolin <max@brave.com>
Co-authored-by: Artem Samoilenko <artem@brave.com>
2024-07-11 14:49:15 -04:00
vadimsandNuo Xu 43735ef5b2 Deprecate local node support and ipfs scheme (#23808)
deprecated IPFS local node support and IPFS scheme
https://github.com/brave/brave-browser/issues/37735
---------

Signed-off-by: Vadym Struts <vstruts@brave.com>
Co-authored-by: Nuo Xu <nuoxu.nx@gmail.com>
2024-07-09 12:34:31 +02:00
Deep Pandya bc8aec76a6 Merge pull request #24527 from brave/fix_gpc_crash_brave_news_settings_android
[Android] fix gpc crash brave news settings
2024-07-08 13:34:59 +05:30
Serg ac53eefb6f Adds CastOptionsProvider to proguard rule on Android 2024-07-05 13:47:15 -04:00
tapanmodh 37db50464e fix gpc crash brave news settings android 2024-07-05 17:44:52 +05:30
Deep Pandya 5e4b82f24c Merge pull request #21456 from brave/improve_search_suggestions_android
Improve search suggestions android
2024-07-04 23:46:25 +05:30
Simone Arpe eea64b12d1 Fix Wallet creation not completing correctly when selecting all available networks (#24506)
Subscribe observers only when are present hidden networks to add/remove
2024-07-04 19:35:01 +02:00
deeppandya f51d01e660 ADdress PR comments with commented code 2024-07-04 02:03:15 +05:30
deeppandya 6281b9cf50 Remove commented code
Update string resources for search suggestion options
2024-07-04 01:08:29 +05:30
deeppandya 58d395b925 Migrate autocomplete option into search engines section 2024-07-04 01:08:26 +05:30
deeppandya 321747f935 Make search suggestions enable by default if the default serach engine is Brave 2024-07-04 01:08:23 +05:30
deeppandya df48abeae2 Remove search suggestions action dialog 2024-07-04 01:08:21 +05:30
deeppandya ac8898a965 Update changes for search suggestion flag behaviour
Remove unnecessary package
2024-07-04 01:08:18 +05:30
deeppandya 33114ab8bf Add serach suggestion UI
Add Ui resources
2024-07-04 01:08:05 +05:30
Max Karolinskiy 467ea900bf Merge pull request #24460 from brave/android_webapps_branding_fix
[C127] [Android] Fix for web app branding icon and string
2024-07-02 18:20:20 -04:00
Artem Samoilenko 818264c2f7 [C127] [Android] Fix for web app branding icon and string 2024-07-02 09:47:08 -04:00
Simone Arpe 8beff33ec8 (Wallet) Implement confirmation screen when finishing onboarding (#24424)
Implement new confirmation screen at the end of onboarding flow when creating or restoring a Wallet.
2024-07-01 15:54:07 +02:00
Artem Samoilenko c283ef8a9c [C127] [Android] Fix for tablet overview UI with no tabs 2024-06-28 13:06:53 -04:00
samartnik fb37669eb1 Merge pull request #24252 from brave/android_copy_edited_url_fix
[Android] Fix for copied URL for typed URLs
2024-06-27 17:10:17 -04:00
samartnik a523199e47 Merge pull request #24412 from brave/android_tablet_ntp_fix
[C127] [Android] Fix for tablet NTP crash
2024-06-27 14:03:24 -04:00
Brian Clifton e737391be8 Merge pull request #24159 from brave/simone/implement-fingerprint-unlock
(Wallet) Implement fingerprint unlock screen
2024-06-27 10:28:26 -07:00
Artem Samoilenko 255ee41630 [Android] Changed fix for copied URL for typed URLs 2024-06-27 13:23:39 -04:00
Artem Samoilenko d94699b195 [Android] Fix for copied URL for typed URLs 2024-06-27 13:22:25 -04:00
Artem Samoilenko 13588e7660 [C127] [Android] Fix for tablet NTP crash 2024-06-27 12:07:15 -04:00
041606b490 [Brave Leo]: Bring your own model (#23916)
Co-authored-by: Brandon T <JustBrandonT@gmail.com>
Co-authored-by: Serg <serg.zhukovsky@gmail.com>
Co-authored-by: Lorenzo <lminto@brave.com>
Co-authored-by: Pete Miller <miller.pete@gmail.com>
2024-06-26 22:08:07 -07:00
deeppandya 5a1d64a638 Resolve presubmit errors
Remove unsued comments
2024-06-25 18:15:23 -04:00
deeppandya adb56f3d45 Update wallet generation error UI 2024-06-25 17:28:15 -04:00
Artem Samoilenko 62ae3adfc0 [Android] Fix for fixed MVT view
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/d864e62dddc14e305f0a274f6058ab082ad2b99a

[SurfacePolish][CleanUp] Clean up surface polish code for MVT (Part 5)

This CL represents part 5 of the cleanup for the surface polish code in
the MVT, focusing on refining the code associated most visited tiles
layout. The update removes the grid layout from most visited tiles and
renames the most visited tiles carousel layout to simply most visited
tiles layout.

Bug: 331667743
2024-06-25 13:13:18 +01:00
Artem Samoilenko c5942c3f07 [Android] Use BottomControlsStacker to resize bottom browser controls
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/d2c4b3d248d0a74dd00e9956df65604eea0ef6bc

[E2E] Use BottomControlsStacker to resize bottom browser controls

Introduce BrowserControlsStacker to coordinate different UI that wants to change the bottom controls height. This CL is used as transitional solution, just forwarding calls from BrowserControlsStacker to the wrapped BrowserControlsSizer, while also provide the BrowserControlsStateProvider for clients to do the observation.

There are still references of BrowserControlsSizer in custom_tabs, which  is not in scope of this initial refactor.

Bug: 345488108
2024-06-25 13:13:16 +01:00
Artem Samoilenko 480657b9d6 [Android] ShowScrollableMVTOnNTP feature was removed
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/d864e62dddc14e305f0a274f6058ab082ad2b99a

[SurfacePolish][CleanUp] Clean up surface polish code for MVT (Part 5)

This CL represents part 5 of the cleanup for the surface polish code in
the MVT, focusing on refining the code associated most visited tiles
layout. The update removes the grid layout from most visited tiles and
renames the most visited tiles carousel layout to simply most visited
tiles layout.

Bug: 331667743
2024-06-25 13:13:14 +01:00
Artem Samoilenko 04cfbc31f5 [Android] Fixes for bytecode unit tests 2024-06-25 13:13:13 +01:00
Artem Samoilenko 5e26b1ecff [Android] ShowScrollableMVTOnNTP feature was removed
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/d864e62dddc14e305f0a274f6058ab082ad2b99a

[SurfacePolish][CleanUp] Clean up surface polish code for MVT (Part 5)

This CL represents part 5 of the cleanup for the surface polish code in
the MVT, focusing on refining the code associated most visited tiles
layout. The update removes the grid layout from most visited tiles and
renames the most visited tiles carousel layout to simply most visited
tiles layout.

Bug: 331667743
2024-06-25 13:13:13 +01:00
Artem Samoilenko 882a482c62 [Android] Minor code adjustments to the C127 upstream changes 2024-06-25 13:13:11 +01:00
Artem Samoilenko f3c143416f [Android] Remove getLastUsedRegularProfile from TabSwitcherActionMenuCoordinator
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/42b4616046112d454bb06bc82a872b625d483b36

Remove getLastUsedRegularProfile from TabSwitcherActionMenuCoordinator.

Bug: 40254448
2024-06-25 13:13:09 +01:00
Artem Samoilenko 15d8a7f8a5 [Android] Fix for missing override lint warning 2024-06-25 13:13:08 +01:00
Artem Samoilenko f8a902e5fa [Android] Split SearchActivityUtils part 2: isolate Client logic
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/8607f4c52155209d87fe2beb46c680bafcb68d13

Split SearchActivityUtils part 2: isolate Client logic (and tests).

There's no functional changes. The code is simply moved around.
Even static method continue to be static to simplify review.

Bug: 329663295
2024-06-25 13:13:07 +01:00
Artem Samoilenko 1b7accf1f5 [Android] Stop accepting fragment as raw string in SettingsLauncher API
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/a132d3713b07b5e78f3c7a0d4b1b0fc9401f4214

Stop accepting fragment as raw string in SettingsLauncher API

No behavior change. Before this CL, the SettingsLauncher API used to
take fragments as 3 different types.
1) Fragment class
2) SettingsFragment enum
3) String for class name of the fragment

2 and 3 are used when the calling code is modularized but not the
corresponding fragment. 3 is less safe than 2 (think features
breaking because the fragment got renamed or changed packages). So
this CL drops 3 and adopts only 2.

Long term, it would be good to unify more, i.e. either
- Modularize all settings fragments and only use 1.
- Only use 2.
But that work is beyond this CL.

Change-Id: I1d2c99aa60bc0393f514a9e10d895185be399196
2024-06-25 13:13:07 +01:00
Simone Arpe 3724df3b95 Add missing copyright header 2024-06-25 12:08:44 +02:00
Simone Arpe 67054e15e8 Fix color resources 2024-06-24 16:04:08 +02:00
Simone Arpe e25ec41de7 Merge branch 'master' into simone/implement-fingerprint-unlock 2024-06-24 15:39:21 +02:00