Commit Graph
3692 Commits
Author SHA1 Message Date
Serg ffe2b353dd Optimizes an access to TemplateUrlService native implementation and fixes a crash on edit private tabs search engine 2023-12-19 10:05:57 -05:00
Serg 284379d904 Creates a mojo channel between browser and renderer for Leo subscriptions on Android 2023-12-15 07:30:33 -05:00
Serg 127a8a222a Links mobile Leo subscription to desktop on Android 2023-12-15 07:30:33 -05:00
Serg 1405c020e1 Adds GPS Leo subscriptions 2023-12-15 07:30:33 -05:00
Serg 68d1302942 Adds leo product id 2023-12-15 07:30:33 -05:00
Serg c7b102cd17 Moves billing logic to a common place 2023-12-15 07:30:33 -05:00
Serg fe838418e6 Adds mojo interface to interact with AI credential manager from Java 2023-12-15 07:30:33 -05:00
Serg f041b282de Handles Go Premium on Android for Brave Leo 2023-12-15 07:30:33 -05:00
Simone Arpe 74668ee2b8 (Wallet) Add new configuration options to set default wallet (#21340)
Adds new two configuration options to set default Ethereum wallet and default Solana wallet. 

We only support Brave Wallet and None on Android. Brave Wallet is set as a default option.
Setting a default wallet to None will disable the DApp detection.
2023-12-14 12:08:24 +01:00
Anirudha BoseandSimone Arpe a56352dff5 chore(wallet): add GetEthTokenInfo and refactor (#21191)
* chore(wallet): add GetEthTokenInfo and refactor

* Fix TS unit tests

* fix presubmit errors

* storybook fixes

* review(supermassive): remove unused definitions from asset_ratio.idl

* review(supermassive): remove GetEthToken{Decimals,Symbol,Name} methods

* review(supermassive): rename contractOrMintAddress to contractAddress

* fix bug for unknown tokens

* review(JL): remove unnecessary condition fallback

* Fix broken android build

* Apply code formatting

---------

Co-authored-by: Simone Arpe <simon.arpe@gmail.com>
2023-12-12 23:15:17 +01:00
Serg c98b35f1c2 Fixes a crash on calling TemplateUrlServiceFactory when main Activity is stopping 2023-12-11 14:42:06 -05:00
Simone Arpe fbc2b67528 (Wallet) Implement WebUI for main portfolio screen (#20635)
Implements WebUI to show Android Wallet except for these parts that will remain native:

- Onboarding
- Authentication
- Transaction confirmations
2023-12-07 12:32:36 +01:00
deeppandya 7441e9786f Resolve persubmit check 2023-12-05 19:24:59 -05:00
deeppandya 06677f95af Disable contact Technical support option if user is not subscribed 2023-12-05 18:48:16 -05:00
deeppandya 98acfc81b4 Update night/light colors for terms of service text
Update import for night/light mode
2023-12-04 21:44:51 -05:00
deeppandya e8344551bb Adjust custodian text in contribution banner 2023-12-04 21:44:47 -05:00
deeppandya 30f04cf917 Update tablet contribution tooltip changes 2023-12-04 21:44:44 -05:00
deeppandya d877f53a7b Add default publisher description for tablet contribution banner 2023-12-04 21:44:34 -05:00
Serg 02f5e1c866 Fixes a crash in UsageMonitor when the class doesn't exist anymore 2023-12-04 14:18:47 -05:00
deeppandya eb8fca7b76 Update vpn callout UI for tablet 2023-12-01 14:40:40 -05:00
deeppandya f6af3fec2b Vpn plan page text update 2023-12-01 12:56:31 -05:00
AlexeyBarabash 693e8ae743 Fixed crash accessing 'send to devices' in share menu via Sync (#21168)
Fixes brave/brave-browser#34636

Related Chromium commit:
https://source.chromium.org/chromium/chromium/src/+/84ed1f62ecd64bbfc3d2c4775a6e80a6b0e9defb

Clean up SendTabToSelfSigninPromo flag

Enabled by default in M119 (https://crrev.com/c/4905024), can be
cleaned up in M120.

Fixed: 1479693, 1295204
Change-Id: Ic778e9c886a5d9391fb5da7510d166952481fe21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4905343
Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Victor Vianna <victorvianna@google.com>
Cr-Commit-Position: refs/heads/main@{#1204655}
2023-12-01 13:16:38 +02:00
Serg 556b4e6ca0 Runs initMiscAndroidMetrics from an UI thread in case of connection failure 2023-11-30 16:46:27 -05:00
Deep Pandya 66edf1b6b5 Merge pull request #21137 from brave/vpn_icon_change_android
Update vpn icon
2023-11-30 15:55:49 -05:00
deeppandya 97bfe1bb5e Update vpn icon for light/dark mode 2023-11-30 14:51:40 -05:00
deeppandya 1cb1347fec Add vpn plan action gradient
Update dimens for vpn plan

Resolve presubmit

Update text with accurate days

Update text based on suggestion
2023-11-30 14:22:12 -05:00
deeppandya bf502d5ddc Update vpn plan page UI
Add vpn plan selector UI

Update vpn plan interaction changes
2023-11-30 14:22:10 -05:00
deeppandya baba2a62b7 Change order for the subscription 2023-11-30 14:22:06 -05:00
deeppandya f6690c5087 Add rewards enabled check
Update visibility
2023-11-28 14:33:34 -05:00
Serg 57eb6a742a Starts MiscAndroidMetrics mojo remote from a SequencedTaskRunner 2023-11-28 10:34:28 -05:00
Pete Miller 4bf52b09d8 Merge pull request #21066 from brave/ai-chat-suggested-questions-on-demand
AI Chat: Suggested questions becomes on-demand instead of automatic
2023-11-28 00:38:38 -08:00
Artem Samoilenko a3a4602df6 [Android] Adjustments for PermissionDialog refactor
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/0c87645005859ff0a36749197b597bdd95ef6aca

[Android][SA] Refactor PermissionDialog into MVC

This CL refactors the custom view of the permission dialog into a MVC
model.

Low-Coverage-Reason: HARD_TO_TEST the controller doesn't have preexisting tests
Fixed: b:307877363
Bug: 1478113
2023-11-27 11:31:39 -05:00
Artem Samoilenko fcdb116aec [Android] Fix for new lint issue
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/70e4bc51e66e9c8fd60e31c893de6ab2b29bb920

Roll Android Lint from pc8Rjasvrz6JiyrxR... to B5rMbDYcnLV5PkN2p...

Manual fix:
- Re-run rebuild_baselines.py to account for the new lint error.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/lint-chromium
Please CC clank-build-core@google.com,clank-library-failures@google.com,wnwen@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: None
2023-11-27 11:31:28 -05:00
Artem Samoilenko 10f1e48f70 [Android] New signature for AutocompleteMediator#loadUrlForOmniboxMatch
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/5799acb4fd93d6b94dc5834f1887af52503b49d2

Remove unused `skipCheck` parameter from updateDestinationUrl call.

  🫧
🫧🧽🧼🫧
    🫧

Bug: 1490333
2023-11-27 11:31:27 -05:00
Artem Samoilenko b140285fe2 [Android] kIdentityStatusConsistency flag was removed
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/0e16cec98cafd5b6198d2f15f259b618ac916968

Remove expired flags in flag-metadata.json

Fixed: 1489874, 1490000, 1490020, 1450821
2023-11-27 11:31:19 -05:00
Artem Samoilenko 36cb6d0874 [Android] Remove AndroidX core dependency for base_java
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/2149347a1f3c112d7d7306b55ba07bba3f361b19

Remove AndroidX core dependency for base_java

* Clean-up all calls to `BuildInfo.isAtLeastX()` as we plan to have the caller handle that themselves for the next android releases.
* This is the final piece to clean up Cronet's dependency on AndroidX core / collection, more information can be seen [here](crbug/1404728).
* Remove AndroidX collection dependency from `base_java` as it was not used there.
* Delete dependency on `BundleCompat.[Put|Get]Binder()`, this was only used because PutBinder was a hidden method for Android API < 18 as seen [here](https://developer.android.com/reference/android/os/Bundle#getBinder(java.lang.String))
and [here](https://codereview.chromium.org/1414733010/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java).

With those changes, base_java does not need to depend on AndroidX core at all.

Bug: 1404728
Bug: 1407158
Bug: b:304217500
2023-11-27 11:27:47 -05:00
Artem Samoilenko d523b95fc8 [Android] Fixes for java formatting for C120 changes 2023-11-27 11:27:31 -05:00
Artem Samoilenko 0c849a22b2 [Android] Migrating all JNI annotations in /base to jni_zero copies
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/c45bc648b3616610b5c2a19ea5060492dc1cb24b

jni_zero: Migrating all JNI annotations in /base to jni_zero copies

This CL is the result of a few simple sed commands, switching any import
statement using any of the 6 JNI annotations, and switching over the gn
targets from base:jni_java to jni_zero_java.

This CL was uploaded by git cl split.

Bug: 1456762
2023-11-27 11:27:30 -05:00
Artem Samoilenko 876f3c18be [Android] AutofillPopupBridge was removed
We don't need our changes since they were fixing issues in the parent class that are not relevant anymore.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/7f04d239494545dbf9c2ad23cfa71d79cf49bdbe

[Android] Remove AutofillPopupViewAndroid and AutofillPopupBridge.

AutofillPopup is referenced in the following places:
* AwAutofillClient in /android_webview
* AutofillPopupBridge in /chrome/android
* AutofillProvider in /components/android_autofill
* AutofillUnitTest in /chrome/android [test-only]

This CL removes obsolete AutofillPopupViewAndroid implementation
of the AutofillPopupView. Only AutofillKeyboardAccessoryAdapter is
used on Android right now. AutofillPopupBridge is removed as a
dependency of the AutofillPopupViewAndroid.

This is done as part of the effort to move AutofillPopup to
android webview as it's the only place it's being used right now.

Bug: 1448820
2023-11-27 11:27:28 -05:00
Artem Samoilenko 6c3aa1d8e4 [Android] Privacy settings clean up
Chromium change:
https://github.com/brave/chromium/commit/b99e2bd8595fb95c46a0dadd523417ba73e2e2e2

[Kartoffel][Clank] Clean up PrivacySandboxSettings4 flag usage
Bug: 1449833
2023-11-27 11:27:18 -05:00
Artem Samoilenko 368fb3140e [Android] ManageAccountDevicesLinkView#inflateIfVisible was removed
Chromium change:
https://github.com/brave/chromium/commit/84ed1f62ecd64bbfc3d2c4775a6e80a6b0e9defb

Clean up SendTabToSelfSigninPromo flag
Enabled by default in M119 (https://crrev.com/c/4905024), can be
cleaned up in M120.

Fixed: 1479693, 1295204
2023-11-27 11:27:10 -05:00
Artem Samoilenko 620264db83 [Android] Minor code adjustments to the C120 upstream changes 2023-11-27 11:27:09 -05:00
Artem Samoilenko 954c974417 [Android] Delete @maindex
Chromium change:
https://github.com/brave/chromium/commit/9135eb237c0b344161464a4351935a4952a8c645

Android: Delete @maindex
It no longer does anything.

Bug: 1471145
2023-11-27 11:27:08 -05:00
Artem Samoilenko b76031db97 [Android] Rename SharedPreferencesManager -> ChromeSharedPreferences
Chromium change:
https://github.com/brave/chromium/commit/dbcebd8c0cc67763d2740282b6451f9ecc114276

SharedPreferencesManager -> ChromeSharedPreferences (part 1)
Updates all deprecated references. Will remove //chrome's copy
of SharedPreferencesManager in a follow-up.

Bug: 1484291
2023-11-27 11:27:07 -05:00
AlexeyBarabash 4fdf6bfd51 Disable refresh of Brave Leo at the panel (#21117)
* Disable refresh of Brave Leo at the panel; fixes brave/brave-browser#34532
2023-11-27 17:55:46 +02:00
tapanmodh fcfbbe753e fix BraveExternalNavigationHandler crash 2023-11-24 15:39:38 +05:30
AlexeyBarabash 18c1a2dc22 Hide Brave Leo menu item at private tab on Android (#20998)
Hide Brave Leo menu item at private tab on Android; fixes brave/brave-browser#34015
2023-11-23 22:29:11 +02:00
Simone Arpe b25cf8753f (Wallet) Update blockies generation (#21087)
Updates blockies generation algorithm following new JS implementation.
2023-11-23 17:30:56 +01:00
Tapan Modh 8c9437763b Merge pull request #21043 from brave/move_youtube_options_android
[Android] move youtube options to media
2023-11-22 18:36:34 +05:30
deeppandya 758dfc4a5a Update bottomsheet for rounded corners 2023-11-22 05:21:09 -05:00