Commit Graph
2479 Commits
Author SHA1 Message Date
Alex C dc4a39b901 updates news "Learn more" link 2022-06-13 20:18:15 -07:00
Serg b5524d7ebe Updates tx approve/reject dialog via observers only for DApps related executions of transactions 2022-06-13 12:40:34 -04:00
Simon Hong e0bc530472 Updated ecosia brand image
fix https://github.com/brave/brave-browser/issues/23405
2022-06-13 13:32:05 +09:00
Pavneet-Sing b1ce2948ec fix(wallet): hide wallet icon in incognito mode 2022-06-11 02:31:01 +05:30
samartnik 7d7028b834 [Android] Fixes for Options Menu in Settings
Chromium change:
https://github.com/chromium/chromium/commit/c145300e47153a5c9288ea101b6effeee2adf058

Roll androidx from k4t_4yTm0... to N32_zlArd... (manual roll)
Includes expectation file updates, and updates usages of
onCreateOptionsMenu() that were not calling super() last.

Binary-Size: unavoidable androidx bloat
Bug: 1315985
2022-06-10 05:58:26 -04:00
samartnik 7e96c3674b [Android] Fixes for WelcomeOnboardingActivity
Chromium change:
https://github.com/chromium/chromium/commit/290a677bbef63d9bc4120b354a1b033fd078a6f2

[Android] Add ChildAccountStatusSupplier
Extracts ChildAccountStatusSupplier class that abstracts how FRE obtains
the child account status and adds tests for this class.

Bug: 1320374
2022-06-10 05:58:26 -04:00
samartnik d6a35fc0f9 [Android] Fixed proguard error for BraveUpgradeJobIntentService
Chromium change:
chromium/chromium@c242865

Re-enabling identifiernamestring proguard rule
Bug: 1170343
2022-06-10 05:58:26 -04:00
AlexeyBarabash d3fa383510 Disable reading list sync preference on Android
fixes brave/brave-browser#23084

Related Chromium change:
https://github.com/chromium/chromium/commit/92c74c166b472ff78318ac1fa3b86f83c0ae2090

[M103] Add missing READING_LIST toggle to Android sync settings
More details on the linked bug. This is only a temporary solution, the
long-term one should be to address crbug.com/1067282, i.e. auto-generate
the UI from the UserSelectableType enum.

Desktop and iOS follow no particular order for the toggles, so this
CL picks something close to the desktop order crbug.com/1326825#c1.

(cherry picked from commit c4ebfbf)

Fixed: 1326825
Change-Id: I185984fc154eb222bf9a09210d2b3face4884bea
2022-06-10 05:58:25 -04:00
samartnik 236e5bab0e [Android] Fixed error on unused Chromium string 2022-06-10 05:58:25 -04:00
samartnik f426c10983 [Android] New c-tor for MostVisitedTilesMediator
Chromium change:
https://github.com/chromium/chromium/commit/460859f59dfe19a1cd769aa5c0a8303cbd4786f3

Fix MVT carousel on small devices.
Before we pass in SuggestionsConfig.TileStyle.MODERN no matter the
device is small or not. This CL fixes this bug by getting TileStyle with
|mUiConfig| and updates the paddings accordingly.

Before:
https://drive.google.com/file/d/1ZKHOdflxLTLRS2rcb4fTrjdkGdivJc09/view?usp=sharing&resourcekey=0-9cJTXuJ3zRJpwLnfYwOQwA

After:
https://drive.google.com/file/d/1eZJOZkIDpRRsGI1YsbW3E0h1u7bmhL1q/view?usp=sharing&resourcekey=0-ZTGwQjTiUDxEgWgMdZlN7A

(cherry picked from commit cf15b75)

Bug: 1327323
2022-06-10 05:58:25 -04:00
samartnik 23e0f15b34 [Android] New changes for FeedSurfaceCoordinator
Chromium change:
https://github.com/chromium/chromium/commit/ff81de2378f2e5b5842d0b21d2adf75dbaa0ca7f

Feed: add logging for more feed launch cancel cases
* NAVIGATED_AWAY_IN_APP: logged when the user follows a non-feed-content link during the feed launch. For the NTP it is logged from our TabObserver.onPageLoadStarted(); it will need to be done differently for Start Surface since the feed isn't in a tab.
* NAVIGATED_BACK: logged when "back" is pressed causing the feed surface to disappear during feed launch. A later change will log it for NTP and Start.
* NAVIGATED_TO_ANOTHER_TAB: User went to another tab during feed launch. This isn't normally what we mean by "navigate" but the name came from logging in the other Discover surfaces.

The NTP and Start changes in this CL just plumb a TabModelSelector to FeedSurfaceCoordinator. Later CLs will hook up the specific logging described above for each surface.

Bug: 1195940
2022-06-10 05:58:24 -04:00
samartnik 8e07849be9 [Android] Fixed proguard error for WireguardService
Chromium change:
https://github.com/chromium/chromium/commit/c242865fb6145c56a29ef27124e89135b3c83b6b

Re-enabling identifiernamestring proguard rule
Bug: 1170343
2022-06-10 05:58:23 -04:00
samartnik 8ff8bf141d [Android] New UI for most visited sites II
Chromium change:
chromium/chromium@a8e63bc

Refactor most visited tiles codes and make it MVCed.
See go/refactor-mvt for more info.

Bug: 1303459
2022-06-10 05:58:23 -04:00
samartnik 14332c6520 [Android] Fixes for unit tests 2022-06-10 05:58:23 -04:00
samartnik 10a1098d8a [Android] Removed bookmarks bottomsheet
Chromium change:
https://github.com/chromium/chromium/commit/714e9e55a1440df5618aa9b82fd88a64b3644ac6

[bookmarks] Remove bookmarks bottomsheet
Bug: 1317296
2022-06-10 05:58:23 -04:00
samartnik 7c50bb3311 [Android] Changes for refactored feed
Chromium change:
https://github.com/chromium/chromium/commit/83240f0bfaff0e0056e0c806e49530bfc06b80f5

Feed: Refactor reliability logging code and add some tests
* Move common logging methods out of FeedSurfaceCoordinator and FeedSurfaceMediator and into a new class, FeedReliabilityLogger
* Add missing unit tests
* Remove some unnecessary mentions of feed reliability logging from Start Surface code
* Use SystemClock.elapsedRealtimeNanos() which can measure time correctly if the device sleeps (theoretically better but probably not very important in practice)

FeedReliabilityLogger is also meant to be a home for future reliability logging logic beyond the feed launch, like "user taps card and sees content".

Bug: 1195940
2022-06-10 05:58:23 -04:00
samartnik 33aa9cdf54 [Android] New UI for most visited sites
Chromium change:
https://github.com/chromium/chromium/commit/a8e63bc6898ceddb6ad0145955824c37931ef07d

Refactor most visited tiles codes and make it MVCed.
See go/refactor-mvt for more info.

Bug: 1303459
2022-06-10 05:58:23 -04:00
samartnik a06e718dfc [Android] New changes for tab switcher menu
Chromium changes:
https://github.com/chromium/chromium/commit/25251c5d93a4237d0e7279aa78e769347fc97c99

[Start] Remove close tab from tab switcher menu
Removed the "Close tab" button presented when long pressing on the tab
switcher toolbar icon on the Start Surface. This button was removed
to avoid user confusion since the Start Surface is not a tab and
clicking it closes the Chrome app.

Screenshots
Before: https://bugs.chromium.org/p/chromium/issues/attachment?aid=549827&signed_aid=GIh9wTZ6mTsceaA4BcPtHw==&inline=1
After: https://bugs.chromium.org/p/chromium/issues/attachment?aid=549828&signed_aid=esWql3g_hqAAjfw08xNR5A==&inline=1

Bug: 1302687
2022-06-10 05:58:23 -04:00
samartnik e3cc50cefe [Android] New changes for FirstRunFlowSequencer
Chromium change:
https://github.com/chromium/chromium/commit/290a677bbef63d9bc4120b354a1b033fd078a6f2

[Android] Add ChildAccountStatusSupplier
Extracts ChildAccountStatusSupplier class that abstracts how FRE obtains
the child account status and adds tests for this class.

Bug: 1320374
2022-06-10 05:58:23 -04:00
samartnik 85df82caff [Android] New c-tor signatures for top toolbar classes
Chromium change:
https://github.com/chromium/chromium/commit/c93a4543bd360aa2ca31f2bccee6bd1381427eb8

AboutThisSite: Launch ephemeral tabs from PageInfo
Pass EphemeralTabCoordinator to PageInfo in order to open source info
and the "more about this page" link on top of the current tab instead
of in a new tab.
Add EphemeralTabCoordinatorSupplier to RootUiCoordinator to make it
available to all the places that create PageInfo.

Screen recording: https://crbug.com/1318000#c5

Bug: 1318000
2022-06-10 05:58:23 -04:00
samartnik 350b323e79 [Android] Clean up toolbar hairline code
Chromium change:
https://github.com/chromium/chromium/commit/d7d355972b5c6ac82234550a2859cdc6ec4f894c

[GMNext] Clean up toolbar hairline code
Bug: 1227450
2022-06-10 05:58:22 -04:00
samartnik f9391cd4b8 [Android] OverviewMode* classes were removed
Chromium change:
https://github.com/chromium/chromium/commit/596552c5837326e9858d5d30974ebfa1235c6ff9

Remove OverviewMode* classes
This patch removes OverviewModeBehavior and its observers. Code that
was still using these classes had easy access to the LayoutManager
which could be used in its place.

Bug: 1108496
2022-06-10 05:58:22 -04:00
samartnik a9b852fd46 [Android] Added explicit dependencies
Chromium changes:
https://github.com/chromium/chromium/commit/494cdd47f9446588db75588b8f2f266d66beb786

Android: Depend on build_java explicitly
This CL moves build_java from being a public_dep of base_java to a
regular dep. This means other targets that need to depend on build_java
must do so explicitly. Since build_java and base_java are not closely
related, this de-coupling (and when jni annotations are similarly moved)
will reduce the number of targets that depend on base_java only for its
annotations, thus speeding up builds when making changes to base_java.

By using dep_operations.py, this CL avoided adding build_java to 224+
targets that already depended on base_java across 194 files. There are
more opportunities to remove unnecessary dependencies on build_java, but
that is left for future CLs in order to prioritize removing build_java
from base_java's public_deps.

Initial estimate (after jni_java is similarly moved out of public_deps)
is that we can remove more than 265+ dependencies on base_java across
~153 files.

Bug: 1038372

https://github.com/chromium/chromium/commit/8a196c163b8fa38f4f6d80d7ed27a9d748e6e425

Android: Depend on jni_java explicitly
This CL moves jni_java from base_java's public_dep to a regular dep.
This means that targets which only need jni_java do not need to depend
on the entirety of base_java. A future CL will remove base_java from
targets that no longer need it as a result of this CL and this other CL
for build_java: https://crrev.com/c/3606468

By using dep_operations.py split and then dep_operations.py remove, this
CL avoided adding 326 instances of jni_java across 201 files.

Bug: 1038372
2022-06-10 05:58:22 -04:00
samartnik e89a19142d [Android] BundleUtils.getIdentifierNameString() was removed
Chromium change:
https://github.com/chromium/chromium/commit/98bd1a5a7052658a7c4c6261979c384c77e74a87

Remove unused method BundleUtils.getIdentifierNameString()
Bug: None
2022-06-10 05:58:22 -04:00
Deep 57880f8022 Resolve PR comment 2022-06-09 18:04:22 -04:00
vinodghai 3155ec6307 Add summary in Show autocomplete in address bar option 2022-06-09 16:17:12 -04:00
deep 422d92991a Add brave talk to menu 2022-06-09 15:16:56 -04:00
Serg c9c700dfc8 Merge pull request #13713 from brave/android_dapps_wallet_icon
Hides a wallet icon on changing URLs inside the same tab
2022-06-09 18:17:34 +01:00
Deep Pandya 68981746ab Merge pull request #13671 from brave/update_vpn_support_page
updated checkboxes to radiobuttons and changed behavior of continue to email button
2022-06-09 12:03:29 -04:00
Serg 58739e1371 Hides a wallet icon on changing URLs inside the same tab 2022-06-09 11:38:38 -04:00
deep c7920aa7d5 Fix formatting 2022-06-08 18:47:05 -04:00
vinodghai 75df0d1692 Improved code and changed background of button on disabled state 2022-06-08 15:52:43 -04:00
Qamar Zaman 05b1394253 Dapps main UI fixes (#13608)
* Fixed dapps related UI issues
2022-06-09 00:25:32 +05:00
Serg 16fa11045e Merge pull request #13687 from brave/android_dapps_full_address
Shows full addresses on Android wallet, adds an origin on a sign message screen
2022-06-08 18:20:53 +01:00
Serg 4295baec03 Shows full addresses on Android wallet, adds an origin on a sign message screen 2022-06-08 12:47:55 -04:00
Deep Pandya 8ed3b165ca Merge pull request #13640 from brave/brave_vpn_notification_update
Add notification changes for VPN
2022-06-08 11:47:49 -04:00
Pavneet Singh 49053b548b Merge pull request #13658 from brave/fix-url-bar-icon-space
fix(wallet): reduce space between url bar icons
2022-06-08 10:42:21 +05:30
deep aa0d80473e Fix formatting 2022-06-07 18:29:42 -04:00
vinodghai 19153b289b updated checkboxes to radiobuttons and changed behavior of continue to email button 2022-06-07 16:22:25 -04:00
deep 200e135bfc Add disconnect option in notification 2022-06-07 14:39:05 -04:00
Deep 0b7481b75f Add notification changes for VPN
FIx rebase error

Resolve CI error

Resolve string error
2022-06-07 14:39:02 -04:00
Serg a963aab6e5 Adds origin info to the transaction approve/reject dialog 2022-06-07 14:07:48 -04:00
Pavneet-Sing 417bff2bfa fix(wallet): reduce space between url bar icons 2022-06-07 21:52:54 +05:30
Deep Pandya 1b08773b8b Merge pull request #13639 from brave/update_vpn_menu_order_android
Change vpn menu order
2022-06-07 10:49:30 -04:00
Deep Pandya 71dd74b573 Merge pull request #13641 from brave/vpn_chanegs
Vpn Changes Android
2022-06-07 10:26:16 -04:00
deep 156651cff3 Resolve CI error 2022-06-07 09:32:34 -04:00
Deep a302d1e886 Resolve CI error 2022-06-07 09:25:19 -04:00
Deep 93b97be850 Adress PR comments 2022-06-07 09:20:30 -04:00
deep 5d2ee91748 CHnage vpn menu order 2022-06-07 04:34:42 -04:00
Deep 21d2d22690 Resolve ANR for billingClient 2022-06-07 04:30:13 -04:00