Commit Graph
1907 Commits
Author SHA1 Message Date
samartnik 4722f4ebc3 [Android] Modularized logo
Chromium change:
https://github.com/chromium/chromium/commit/de614aadd072a1cc42e4be84508d22706aa07804

Modularize logo/
See go/clank-modularization-logo for more info.

Bug: 1261631
2022-02-17 14:03:04 -05:00
samartnik 7627ed5873 [Android] Fixes for removed and renamed resources 2022-02-17 14:03:00 -05:00
samartnik f965f2e73e [Android] Tab overview animation was simplified
Chromium change:
https://github.com/chromium/chromium/commit/94a231f90d89f9af2996172fae508f9472d573cb

Remove unused rendering code in TabLayout
Follow up to https://chromium-review.googlesource.com/c/chromium/src/+/3388174
and continues to simplify the Tab rendering logic for phones.

Also deletes anything related to tilting/rotating and card backs for the
tabs.

Bug: 1287653
2022-02-17 14:03:00 -05:00
samartnik 1d93f69ea0 [Android] New c-tor signature for LayoutManagerChrome
Chromium change:
https://github.com/chromium/chromium/commit/0d0895af67ad844e5292c4640a3b0fffbdf44839

[Jank] Make LayerTitleCache Tablet-only.
Noticed while looking at a startup/jank issue that we were creating the
LayerTitleCache. Now that we only ever use the java tab-switcher on
Phones, I opted to nuke it entirely from non-tablet UI.

Along the way, I moved ownership entirely out of CompostorViewHolder and
into LayoutManagerChromeTablet.

Change-Id: Ifaff8a7fc6eb507d0b7edd688a493103a55d2730
2022-02-17 14:02:59 -05:00
samartnik 126b4c13f2 [Android] New functions in SigninManager
Chromium change:
https://github.com/chromium/chromium/commit/85aab36a5628ebd3ab259068954f982eeff2b1bc

Update SigninChecker to not enable sync for Unicorn users
This updates the SigninChecker implementation to not enable sync when
signing in a Unicorn user in the background (flag-guarded).

Later CLs will update SyncController.java and the FRE screens to also
not force enable sync.

Bug: 1285310
2022-02-17 14:02:58 -05:00
samartnik 4812cec3aa [Android] Tab switcher top toolbar code reorganization
Chromium change:
https://github.com/chromium/chromium/commit/b0c82063f830bba93b58db749855cef8f16d6c02

[Refactor] Rename tab switcher top toolbar to not be phone specific
Bug: 1286780
2022-02-17 14:02:57 -05:00
samartnik 23bceb6c36 [Android] createChromeContext was moved
Chromium change:
https://github.com/chromium/chromium/commit/2a774859aecae9ae788ef3a07e5294bf2d265e51

Move SplitCompatUtils into //base
This needs to be moved so it can be used by the autofill_assistant
component. The createChromeContext method was moved into
SplitChromeApplication.

A follow up will remove the old SplitCompatUtils class once all internal
references are removed.

Bug: b/183478921
2022-02-17 14:02:56 -05:00
samartnik b7a9a8156b [Android] logo_card_back was removed
Chromium change:
https://github.com/chromium/chromium/commit/94a231f90d89f9af2996172fae508f9472d573cb

Remove unused rendering code in TabLayout
Follow up to https://chromium-review.googlesource.com/c/chromium/src/+/3388174
and continues to simplify the Tab rendering logic for phones.

Also deletes anything related to tilting/rotating and card backs for the
tabs.

Bug: 1287653
2022-02-17 14:02:56 -05:00
samartnik 9f8078280d [Android] Added usage of ChromiumNetworkAdapter
This fixes these warnings:
../../brave/android/java/org/chromium/chrome/browser/rate/RateFeedbackUtils.java:76: warning: [UseNetworkAnnotations] Direct use of URL#openConnection() is forbidden in Chromium. Use ChromiumNetworkAdapter#openConnection() instead.

			urlConnection = (HttpURLConnection) url.openConnection();

			                                                     ^

    (see https://bugs.chromium.org/p/chromium/issues/detail?id=1231780)

../../brave/android/java/org/chromium/chrome/browser/shields/BraveShieldsUtils.java:124: warning: [UseNetworkAnnotations] Direct use of URL#openConnection() is forbidden in Chromium. Use ChromiumNetworkAdapter#openConnection() instead.

                urlConnection = (HttpURLConnection) url.openConnection();

                                                                      ^

    (see https://bugs.chromium.org/p/chromium/issues/detail?id=1231780)

In addition properly formatted RateFeedbackUtils.java file

Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3321445

[Net][Android] Add and use ChromiumNetworkAdapter

This is a wrapper around URL#openConnection() that requires a
NetworkTrafficAnnotationTag, which is used for static analysis.
A future change will add compile-time checks to prevent direct usage
of URL#openConnection().

Replace all URL#openConnection() calls with
ChromiumNetworkAdapter#openConnection().

More blocklisted methods are likely to be added in the future.

Bug: 1231780
2022-02-17 14:02:44 -05:00
samartnik c453fc3987 [Android] Adjusted code for new color management
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3351221

Reland "[GMNext] Update ThemeColorProvider to use OmniboxTheme"

This is a reland of 16fdb849a961bef58fb236a12ecb9ad7727c1a6d

Original change's description:
> [GMNext] Update ThemeColorProvider to use OmniboxTheme
>
> This CL updates the icon tint in some classes to follow OmniboxTheme
> instead of the simple light/dark tint. It also moves OmniboxTheme out
> of chrome/browser/omnibox to be able to use it in classes outside
> omnibox/.
>
> Bug: 1233725, 1114183
2022-02-17 14:02:43 -05:00
samartnik 8ccf80a958 [Android] Removed obsolete param for TabModel setIndex 2022-02-17 14:02:37 -05:00
samartnik 48d9d8860b [Android] Changes for accent1 color
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3331374

[GMNext] Make primary inverse text colors dynamic

Bug: 1233703, 1241971
2022-02-17 14:02:36 -05:00
samartnik 31f19a4653 [Android] New param for updateBookmarkMenuItemShortcut
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3296726

Make bookmark shortcut appear in custom tab

When customizing the app menu for Reading List the bookmark button was
dropped from the app menu list for custom tabs.

Bug: 1265745
2022-02-17 14:02:35 -05:00
Anirudha Bose 211783b70d Merge pull request #12267 from brave/f/wallet/arbitrum-bug
Fix incorrect gas limit computation on Arbitrum
2022-02-16 23:10:57 +05:30
Anirudha Bose 6d3596e5fc feat(wallet): bubble up ApproveTransaction error message to clients 2022-02-16 16:17:00 +05:30
Serg eeda0826f8 Adds a check on add EVM error when chain_id isn't exist on Android 2022-02-15 22:46:25 -05:00
Jocelyn Liu 8ad00551bd Fix android build to use TxService and EthTxManagerProxy interfaces 2022-02-15 10:17:33 -08:00
alexsafe 6b99c00598 Merge pull request #12255 from brave/bravenews-android-bg-position
[Android] - Brave news fixes for background image crop and cards positioning
2022-02-15 12:32:35 -05:00
Kamil Jozwiak 7119d9b7b1 Merge pull request #12250 from brave/98.0.4758.102_master
Upgrade from Chromium 98.0.4758.87 to Chromium 98.0.4758.102.
2022-02-15 11:55:42 -05:00
Alex C 4c89f5bcc1 [Android] - Brave news fixes for background image crop and cards positioning 2022-02-15 11:30:16 -05:00
Jocelyn Liu a99b2b06c7 Fix java build errors after change TransactionInfo.txData to an union 2022-02-14 20:21:26 -08:00
samartnik 049761ea44 [Android] New c-tor signatures for various classes 2022-02-14 20:27:24 -05:00
Pavneet Singh c2e0a8c85d Merge pull request #12225 from brave/restore-wallet-option-visual-changes
visuals udpates of restore wallet option
2022-02-15 01:13:49 +05:30
Anthony Tseng 50230a4644 Fix revealing private key for non ETH keyrings 2022-02-11 17:13:02 -08:00
Deep Pandya 550b1a674d Merge pull request #12179 from brave/update_auto_contribution_summury
Resolve auto contribution summary
2022-02-11 09:37:11 -05:00
Deep Pandya 4051b0e135 Merge pull request #12197 from brave/hide_rewards_from_ads_for_disconnected_state
Hide rewards from ads for diconnected state
2022-02-11 09:36:58 -05:00
Deep Pandya 96a60b5481 Merge pull request #12182 from brave/resolve_rewards_icon_issue
Resolve rewards icon issue
2022-02-11 09:35:32 -05:00
wchen342 61b5ffd739 Merge pull request #12209 from brave/nw_swap_tofrom_fix
Fix Swap from can be same as swap to
2022-02-11 15:25:01 +02:00
Pavneet-Sing 282e48cc8f visuals udpates of restore wallet option 2022-02-11 18:24:11 +05:30
wchen342 cd34a8ddbe Fix Swap from can be same as swap to 2022-02-11 14:29:52 +02:00
Anthony Tseng 93aa6bc186 1. ImportAccount now requires CoinType
2. Add importing Solana private key support (without UI hookup)
2022-02-10 21:30:42 -08:00
Deep eaa489de7b Migrate pref 2022-02-10 15:46:10 -05:00
Tapan Modh 26500ac420 Merge pull request #12191 from brave/set_default_browser_followup_android
Set default browser followup android
2022-02-11 00:16:00 +05:30
Serg 76b9fc7246 Fixes after code review 2022-02-10 08:19:19 -05:00
Serg e358ffbb8a Various fixes for Android EVM networks feature 2022-02-09 21:58:53 -05:00
tapanmodh c9afb8c699 Show in app set default with rolemanager in case of onboarding only 2022-02-10 03:33:12 +05:30
tapanmodh 83a999782d Show in app set default with rolemanager in case of onboarding only 2022-02-10 02:04:54 +05:30
Deep b4fad2047d Hide rewards from ads for diconnected state 2022-02-09 12:42:20 -05:00
wchen342 7afac0a768 Merge pull request #12186 from brave/nw_token_populate
[Android] Auto populate custom token info
2022-02-09 19:23:22 +02:00
wchen342 a558e7ed98 Add custom asset query 2022-02-09 16:39:56 +02:00
Deep c9f225b8e3 Resolve rewards icon issue 2022-02-08 11:19:21 -05:00
tapanmodh f19b70b1e5 cleanup 2022-02-08 21:33:13 +05:30
tapanmodh e0c2e3dfad Show in app set default with rolemanager in case of onboarding only 2022-02-08 21:26:19 +05:30
Deep f56afa6c56 Resolve auto contribution summary 2022-02-08 10:21:28 -05:00
Brian R. Bondy eadfb88812 Merge pull request #12054 from brave/eth_feeHistory
Create multi-EVM compatible 1559 gas oracle based on eth_feeHistory Json RPC API
2022-02-07 13:24:26 -05:00
samartnik cd5001902c Merge pull request #12149 from brave/android_open_in_new_tab_context_menu
[Android] Made context menu option 'Open in new tab' visible
2022-02-07 11:44:47 -05:00
samartnik e4e259e815 [Android] Made context menu option 'Open in new tab' visible 2022-02-07 10:26:53 -05:00
alexsafe aaa4f138bd Merge pull request #12155 from brave/bravenews-android-fixes74
Brave News android fixes
2022-02-04 20:55:18 -05:00
Alex C 6a3833785f [Android] Brave news - fixes 2022-02-04 17:54:28 -05:00
Serg 79390e22f1 Merge pull request #12148 from brave/android_large_amount
Fixes a crash when a large amount is entered in From or To fields
2022-02-04 17:13:16 -05:00