Commit Graph
2633 Commits
Author SHA1 Message Date
Aleksey Khoroshilov c5b7053077 Optimize brave/android pngs by running optimize-png-files.sh. 2022-10-17 14:43:45 +07:00
Serg 44dbb074d0 Merge pull request #15472 from brave/android_retention_crash
Adds a few null checks and handling an exception inside RetentionNotificationPublisher on Android
2022-10-14 23:02:12 +01:00
Serg 224377b12e Adds a few null checks and handling an exception inside RetentionNotificationPublisher on Android 2022-10-14 16:08:33 -04:00
Serg 179ef7c269 Fixes a crash in cases when there is no active tab or it has not been initialized yet on Android 2022-10-14 15:17:20 -04:00
Artem Samoilenko 16c7f11a0d [Android] Java code adjustments to the upstream changes
Chromium change:
https://github.com/chromium/chromium/commit/2b70a2044f6ac7f362f2730fef52134ca5d68083

[M107 Merge][WebContentsImpl] Don't call didFinishNavigation in child…
… frames

Part of reducing navigation cost to reduce scroll jank. Java observers
don't do work when didFinishNavigation is called in child frames,
so we don't have to notify java in this case.

The changes to restrict didFinishNavigation to main frames is not behind a flag, so to measure the effect on jank, we added a didFinishNavigationNoop function (behind a flag) to mirror what didFinishNavigation did before this change. We think that the overhead from overrides add up to something measurable, so I added a redundant boolean check to make sure this override doesn't get optimized (might get optimized if it's empty but not completely sure). I also wanted it to be as close as possible to what it was doing before, so that we can capture more accurately the effect on jank metrics.

(cherry picked from commit df8db0d)

Bug: 1359110, 1369683
2022-10-13 16:51:37 -04:00
samartnik af82aedaaf [Android] Disabled StartSurfaceAndroid II
We don't nedd it as we implement NTP in our own way

Chromium change:
chromium/chromium@8d376e3

Reland: [Start] Enable feature StartSurfaceAndroid by default.
The original CL got reverted due to test failures: crbug.com/1359954.
These failing tests are fixed in:
1. https://chromium-review.googlesource.com/c/chromium/src/+/3880682
2. https://chromium-review.googlesource.com/c/chromium/src/+/3877423
3. https://chrome-internal-review.googlesource.com/c/clank/internal/apps/+/4971322
4. https://chromium-review.googlesource.com/c/chromium/src/+/3888100

Bug: 1356180, 1359954
2022-10-13 16:51:36 -04:00
samartnik f44d4e26fe [Android] New c-tor signature for TopToolbarCoordinator 2022-10-13 16:20:10 -04:00
samartnik 302a8fb692 [Android] Rename annotations from base to build
Chromium change:
https://github.com/chromium/chromium/commit/81c3fcc981d18d5e1fdd6430b9de75bfde470b02

Android: Rename annotations from base to build
These annotation java files have been moved to build as they relate more
to our build than base. Their package name should reflect their current
location.

The old code and proguard flags have been kept to avoid breaking
downstream. They will be removed after downstream rename is landed.

Cq-Include-Trybots: luci.chrome.try:android-internal-rel
Bug: 1038372
Change-Id: I58a00a67816214ff81a62899409c5d5dbd3e3965
2022-10-13 16:20:09 -04:00
samartnik a94bc768e1 [Android] Fix for lint error
Error fixed:
../../brave/android/java/org/chromium/chrome/browser/settings/BraveSyncScreensPreference.java:723: Warning: Assertion condition has a side effect: tag = normalizeTag(tag) [AssertionSideEffect]
        assert isSeedHexValid(seedHex);
2022-10-13 16:20:09 -04:00
samartnik 4d055e8a95 [Android] New c-tor signature for TopToolbarCoordinator 2022-10-13 16:20:09 -04:00
samartnik 72908aec9d [Android] New usage for AppHooks
Chromium change:
https://github.com/chromium/chromium/commit/530c14a0f529f79f84a536f60c18b1f7c7a6613e

[PolicyAuditor] Decouple PolicyAuditor from java WebContentsObservers
During navigations, we call down into java to notify an observer which
checks if we have a PolicyAuditor. Most of the time, we don't have
a PolicyAuditor, so these calls are unnecessary. This cl moves this
check to native, so in the case where we don't have a PolicyAuditor, we
don't create the observer.

Bug: 1353905
2022-10-13 16:20:06 -04:00
samartnik 305aa8b93d [Android] Changed usage for IntentHandler
Chromium change:
https://github.com/chromium/chromium/commit/a006fac8a949c5afb61dc90a1ff6d62699d334dd

customs Prevent CCT launch to JavaScript URLs.
Because Custom Tabs don't have a fallback UI like ChromeTabbedActivity
does (the New Tab Page), it would be awkward to check whether a given
URL is valid after launching the Custom Tab. So we prevent the Custom
Tab being launched if the URL is invalid.

Bug: 1240065
2022-10-13 16:20:03 -04:00
samartnik 2676bc16d8 [Android] TabObscuringHandler moved from 'toolbar' to 'tab' package
Chromium change:
https://github.com/chromium/chromium/commit/1111ee29b8f5d36548d82971145e929851c51c0d

Move TabObscuringHandler from 'toolbar' to 'tab' package
Followup for https://crrev.com/c/3845159.

Change-Id: I00bad3cbf8008be7989ce3858f1363430d7a9b00
2022-10-13 16:19:59 -04:00
tapanmodh 7ce52efb0c fix brave news feed ads crash in android 2022-10-12 23:41:45 +05:30
Artem Samoilenko 84d691dde4 [Android] Adjustment for ToolbarLayout changes 2022-10-11 20:07:02 -04:00
Pavneet-Sing 0c925e12fe fix: edge case for missing data and review comments 2022-10-08 00:51:51 +05:30
Pavneet-Sing 2d06f8154f feat: implement sign tx and sigl all tx sol request 2022-10-07 17:52:51 +05:30
Sujit Acharya 38b3214f67 update comment 2022-10-07 02:37:50 +05:30
Sujit Acharya b265fbe9ee update 2022-10-07 02:37:50 +05:30
Sujit Acharya 4b92e295c7 update comments 2022-10-07 02:37:50 +05:30
Sujit Acharya 0d5789efa1 udate review comments 2022-10-07 02:37:50 +05:30
Sujit Acharya d80757ba59 remove commented code 2022-10-07 02:37:50 +05:30
Sujit Acharya be5b246738 format 2022-10-07 02:37:50 +05:30
Sujit Acharya c13bcfaca8 Android 13 permission request during opt-in of rewards or privacy report 2022-10-07 02:37:50 +05:30
Deep Pandya 0e07c4d474 Merge pull request #15354 from brave/disable_outside_touch_android
Dismiss outside touch android
2022-10-05 19:59:05 +01:00
Serg db7bbaec7d Merge pull request #15357 from brave/android_bg_playback
Migrates bg playback preference to feature on Android
2022-10-05 19:24:32 +01:00
Serg 93102d6a1a Migrates bg playback preference to feature on Android 2022-10-05 12:18:36 -04:00
deeppandya 9f44fedd35 Dismiss outside touch android 2022-10-05 10:21:42 -04:00
mkarolin 9ccb9f4be3 [Rewards] Remove StartProcess from rewards service public API. 2022-10-03 22:28:59 -04:00
Brian R. Bondy 7b7bc3cbae Merge pull request #15266 from brave/remove-deprecated-testnets
Prepare for upcoming deprecation of Ethereum testnets
2022-10-03 15:37:04 -04:00
Darnell Andries e952b4ccdd Merge pull request #15298 from brave/vpn-p3a-android-crash-fix
Fix VPN P3A Android crash
2022-10-03 11:32:26 -07:00
Nick von Pentz 143f28e1fb Prepare for upcoming deprecation of Ethereum testnets
* Remove references to Rinkeby, Ropsten, and Kovan testnets as they will
  be deprecated soon.

* Add Sepolia Ethereum testnet as a preloaded network

* Migrate test network used by Swap Service to Goerli

* Add migration to update selected ethereum network to mainnet if any of
  the deprecated testnets are selected
2022-10-03 13:53:48 -04:00
Pavneet-Sing d92d4acf7c fix: Wallet qr address and link color per theme
- add lint warning details
2022-10-03 23:00:40 +05:30
Darnell Andries 34c55917f4 Fix VPN P3A Android crash 2022-10-03 08:53:46 -07:00
samartnik 4d872af6f2 [Android] Added ref code for installs from ads 2022-09-30 14:40:46 -04:00
deeppandya f3c466c78e Change android prefs from local pref to user pref
Update value for subscription_id
2022-09-29 16:00:06 -04:00
Deep 00cf72e822 Add product id in pref for cross vpn
Register product_id pref
2022-09-29 16:00:05 -04:00
samartnik 8f6718c1b9 [Android] Removed Ask when to save files option 2022-09-28 18:47:57 -04:00
sujitacharya2005 fc55a8f465 Merge pull request #14967 from brave/Fix_for_17070_Tipping_banner1
New tipping banner UI brave-browser/issues/17070
2022-09-27 20:57:25 +05:30
wchen342 a7c663663a Merge pull request #15209 from brave/wallet_android_ropsten_swap
[Android] Add back Swap on Ropsten
2022-09-27 13:47:49 +03:00
wchen342 3244a6808b [Android] Add back Swap on Ropsten 2022-09-27 13:06:17 +03:00
aseren 0071c75054 Merge pull request #15229 from brave/issues/25627
Fix maximum staging ads number.
2022-09-27 03:26:06 -05:00
Sujit Acharya 28ce88b1e8 update color 2022-09-27 09:21:39 +05:30
sujitacharya2005 b292ffcd3a Merge branch 'master' into Fix_for_17070_Tipping_banner1 2022-09-27 06:53:57 +05:30
Aleksey Seren 6bafb6fe05 Fix maximum staging ads number.
fix https://github.com/brave/brave-browser/issues/25627
2022-09-27 06:25:13 +07:00
Brian R. Bondy 31a503dd33 Merge pull request #15187 from brave/cookie-consent-block-p3a
Add P3A metrics for cookie consent notice blocking
2022-09-26 15:59:56 -04:00
Deep Pandya fd55c5e9e7 Merge pull request #15214 from brave/change_notification_permission_rational_behaviour_android
Update notification permission retaionale dialog behaviour
2022-09-26 17:51:34 +01:00
deeppandya c893f547b2 Update notification permission retaionale dialog behaviour 2022-09-26 11:33:19 -04:00
Darnell Andries d0661cf5f1 Add P3A metrics for cookie consent notice blocking 2022-09-23 17:03:54 -07:00
wchen342 60d237c72d [Android] Add Locale support to wallet send value parsing 2022-09-23 16:55:26 +03:00