Commit Graph
4980 Commits
Author SHA1 Message Date
samartnik f51ac207b4 [Android] Fix for qr code reader when device is flipped (#32597)
To avoid copy/pasting of the same code in `BraveLocationBarQRDialogFragment` and `BraveSyncScreensPreference`, the common code related to qr code reading was moved to `QRCodeCameraManager` class.
2025-11-28 13:43:21 -05:00
Terry Mancey 0c7e0ed3d3 [ads] Android NTTs not displayed when Rewards is disabled by policy/feature or OFAC-blocked (#32478)
New Tab Takeover (NTT) ads should have no relation to Rewards. This PR
ensures that NTT ads are shown even if Rewards is disabled by
policy/feature or OFAC-blocked, since the sponsored images component is
not served to OFAC countries.
2025-11-28 07:14:49 -05:00
samartnik b5d1940f4f [cr143][Android] Deprecate TabGroupModelFilterImpl (#32554)
* [cr143][Android] Deprecate TabGroupModelFilterImpl

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/74591e3cce051612058a135c4b7fd55aab1d6320

commit 74591e3cce051612058a135c4b7fd55aab1d6320
Author: Calder Kitagawa <ckitagawa@chromium.org>
Date:   Thu Oct 23 07:08:09 2025 -0700

    [Tab Collection] Publicize deprecation more loudly

    Bug: 454344854
    Change-Id: I7fd5f9af32a76f0c1b8a7e131879d75cbb87dd3e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7079335
    Auto-Submit: Calder Kitagawa <ckitagawa@chromium.org>
    Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
    Reviewed-by: Dan Polanco <polardz@google.com>
    Commit-Queue: Dan Polanco <polardz@google.com>
    Cr-Commit-Position: refs/heads/main@{#1534290}

* Presubmit fixes
2025-11-26 11:04:38 -05:00
samartnik 57dfa92d42 [Android] Respect the user choice on DMA search choice screen (#32532) 2025-11-25 13:44:42 -05:00
Serg a5bc626771 [Android]Renames kBraveFreshNtpAfterIdleExpirementVariant to kBraveFreshNtpAfterIdleExperimentVariant (#32499)
[Android]Renames kBraveFreshNtpAfterIdleExpirementVariant to
kBraveFreshNtpAfterIdleExperimentVariant.

Resolves: https://github.com/brave/brave-browser/issues/51045
2025-11-24 21:29:50 +01:00
samartnik dc731eb5a3 [Android] New privacy-preserving uac codes (#32456)
* [Android] New privacy-preserving uac codes

* Move BraveReferrer to the referrer folder

* Presubmit fixes
2025-11-24 14:06:39 -05:00
Serg 86a4887089 Android new tab page ab test (#32464)
* [Android] Fresh NTP after idle experiment.

Introduces 4 different variants whether to show NTP or not when Brave
is foregrounded.
Resolves: https://github.com/brave/brave-browser/issues/50989
2025-11-21 17:32:50 -05:00
samartnik f1c81a4b90 [Android] Fix QR code reader stretching in certain configurations (#32474) 2025-11-21 12:51:27 -05:00
samartnik f21cc01b40 [cr143][Android] Remove obsolete Brave theme preferences (#32444)
This is a follow up to the cr143 change https://github.com/brave/brave-core/commit/9726b779e61cf5881d575ac84e2af3f319976155
Upstream's theme preferences has exact same funtionality now, so there is no need in our own version of it.
2025-11-20 10:36:55 -05:00
Terry Mancey 6a2ea02465 [ads] Fixes NTPBackgroundImagesBridge::CreateBrandedWallpaper crash when opening SNTP (#32440) 2025-11-20 06:26:26 -05:00
samartnik 81cf1aa569 [Android] Fix for crash in Leo on tab swipe (#32424) 2025-11-19 14:19:56 -05:00
Terry Mancey 957073afda [ads] Remove super referrals (#32168)
Remov Super Referrals. The feature is no longer supported or used, and
this cleanup helps reduce unused code and simplify the overall system as
part of https://github.com/brave/brave-browser/issues/44403.
2025-11-19 03:01:08 +01:00
Artem Samoilenko 1c78cb2756 [cr143][Android] Changes for new StatusBarColorController c-tor signature
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e484f5ab2a3f3dd8fa796e1a8d35d757d35174cc

commit e484f5ab2a3f3dd8fa796e1a8d35d757d35174cc
Author: Xi Han <hanxi@google.com>
Date:   Sun Nov 9 15:06:26 2025 -0800

    [M143] [Theme] Fix crash of RootUiCoordinator.getStatusBarColorController.

    Original change's description:
    > [Theme] Fix crash of RootUiCoordinator.getStatusBarColorController.
    >
    > This is a follow up of CL (https://crrev.com/c/6858391). The crash
    > happened when registering a listener of NtpCustomizationConfigManager
    > in BaseCustomTabActivity which shouldn't have the knowledge of NTPs. In
    > this CL, we split StatusBarColorController's ctor and move NTP's
    > related changes into an initialize() function, which is only called in
    > TabbedRootUiCoordinator.
    >
    > Bug: 457546787  432527690
    > Change-Id: I39aaba04996ab5daf80b456eaed31bd62d733b7a
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7120958
    > Reviewed-by: Sinan Sahin <sinansahin@google.com>
    > Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    > Commit-Queue: Xi Han <hanxi@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#1540709}

    (cherry picked from commit 4bbd31644fb6a2b83e6ccb85ebd33e24308cc93b)

    Bug: 458770806,457546787  432527690
    Change-Id: I39aaba04996ab5daf80b456eaed31bd62d733b7a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7136000
    Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    Auto-Submit: Chrome Cherry Picker <chrome-cherry-picker@chops-service-accounts.iam.gserviceaccount.com>
    Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    Cr-Commit-Position: refs/branch-heads/7499@{#1208}
    Cr-Branched-From: b30439823e5177773584139e72e0593e36863899-refs/heads/main@{#1536371}
2025-11-18 11:28:41 -05:00
Artem Samoilenko 72a26c06ed [cr143][Android] Fix for bottom controls color in tab switcher mode for private tabs
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/c311f42de865d0e59b705fd46e6bfb44e5fe1dd1

commit c311f42de865d0e59b705fd46e6bfb44e5fe1dd1
Author: Madhav Pruthi <madhavpruthi@google.com>
Date:   Wed Sep 10 06:38:16 2025 -0700

    Reland "[PinnedTabs] Integrate pinned tab strip with Tab Switcher"

    This is a reland of commit 05dc8c49e75212a014add375b5337fdb56746831

    What is fixed:
    On bigger screens, the number of tabs required are more to scroll and make the pinned bar visible. Hence increased it to 18 which fills the GTS and scrolling makes the bar visible. Diff can be seen between Patch 1 and 2.

    Original change's description:
    > [PinnedTabs] Integrate pinned tab strip with Tab Switcher
    >
    > Impl Recording: http://screencast/cast/NTI3NjU2NjIwNzU5NDQ5NnxlMjNhOWZjNS02MA
    >
    > Change-Id: I89d5d1869ffbaf2babdde1559f5a2708da172af3
    > Bug: 436614730
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6872502
    > Reviewed-by: Sky Malice <skym@chromium.org>
    > Reviewed-by: Christian Dullweber <dullweber@chromium.org>
    > Commit-Queue: Madhav Pruthi <madhavpruthi@google.com>
    > Cr-Commit-Position: refs/heads/main@{#1513008}

    Bug: 436614730
    Change-Id: I5072f6c54619d52e7bec39906c6c9a6772d6215a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6931991
    Commit-Queue: Madhav Pruthi <madhavpruthi@google.com>
    Reviewed-by: Christian Dullweber <dullweber@chromium.org>
    Reviewed-by: Sky Malice <skym@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1513666}
2025-11-18 11:28:30 -05:00
Artem Samoilenko edb4e4a4ba [cr143][Android] Match bookmark button style with the upstream
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/7db144bd6dbe489ea9a0d728aa756a4b5610d990

commit 7db144bd6dbe489ea9a0d728aa756a4b5610d990
Author: Sinan Sahin <sinansahin@google.com>
Date:   Tue Sep 30 15:45:23 2025 -0700

    Clean up upstream theme module code

    Bug: 419879223
    Change-Id: I6978cf46955eff76a5b644abc4ed3f9dd3da7fe0
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7001600
    Commit-Queue: Sinan Sahin <sinansahin@google.com>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1523192}
2025-11-18 11:27:49 -05:00
Artem Samoilenko e76fb92bfa [cr143][Android] Apply material style on new tab button on bottom controls
This is to match current look of the upstream's new tab button on the top toolbar.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/6b0c6d0a59741c881f38a425053e36d469363844

commit 6b0c6d0a59741c881f38a425053e36d469363844
Author: Sinan Sahin <sinansahin@google.com>
Date:   Tue Sep 30 10:18:16 2025 -0700

    Reland "Migrate to Material3Expressive"

    This is a reland of commit ddc59318c9524bb0e98a3aac20a085dd57731cee

    The original CL caused test failures in CI because of an R8 issue. It's since been fixed in cl/811001846.

    Original change's description:
    > Migrate to Material3Expressive
    >
    > Bug: 427971093
    > Change-Id: I14790d37aab135fbf18453a58dc88c4553b14b61
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6961040
    > Commit-Queue: Sinan Sahin <sinansahin@google.com>
    > Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    > Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#1518087}

    Bug: 427971093
    Fixed: 446644585
    Change-Id: I4932b3a1a957f2b287a1d0be6c453257b6281a3a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6974420
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Commit-Queue: Sinan Sahin <sinansahin@google.com>
    Reviewed-by: Sky Malice <skym@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1522968}
2025-11-18 11:27:48 -05:00
Artem Samoilenko 7c434d1acd [cr143][Android] Adjustments for menu footer to match upstream's menu header
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/bf6599b2f1cfd7569c3080f1c4ab084ecb1f72b6

commit bf6599b2f1cfd7569c3080f1c4ab084ecb1f72b6
Author: Sinan Sahin <sinansahin@google.com>
Date:   Fri Oct 3 14:20:00 2025 -0700

    [Density] Adjust app menu icon row for desktop density

    Bug: 414869569
    Change-Id: Ibaeafe4877a8a6905291e3ee0d4554ffb15118ac
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7006563
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Commit-Queue: Sinan Sahin <sinansahin@google.com>
    Cr-Commit-Position: refs/heads/main@{#1525024}
2025-11-18 11:27:38 -05:00
Artem Samoilenko e0d7282db2 [cr143][Android] Changes for TabCreator.launchNtp
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/2fc13618d1c4007b57ba03de1c39477652b8affb

commit 2fc13618d1c4007b57ba03de1c39477652b8affb
Author: Sky Malice <skym@chromium.org>
Date:   Mon Oct 27 10:26:36 2025 -0700

    [Persist] Convert TabCreator to interface.

    Bug: 445197903
    Change-Id: I798600d2e0f759ff7ec8e91cfdbaa37c481eb8cd
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7064490
    Reviewed-by: Fiaz Muhammad <mfiaz@google.com>
    Commit-Queue: Sky Malice <skym@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1536072}
2025-11-18 11:27:38 -05:00
Artem Samoilenko ce612219ab [cr143][Android] Changes for default location of the bookmark bar when visible
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/a6364151203138d43e7f3b75faf5a1c0aefebafa

commit a6364151203138d43e7f3b75faf5a1c0aefebafa
Author: Mark Schillaci <mschillaci@google.com>
Date:   Thu Oct 23 10:55:10 2025 -0700

    [Bookmarks Bar] Make the default location the bookmark bar when visible

    This CL updates the implementation of saving bookmarks in Clank so that
    when the bookmark bar is visible, we save to the bar by default instead
    of the Mobile Bookmarks folder, per specs.

    With the CL, we update the BookmarkUtils class to save new bookmarks
    to the bookmark bar when the bookmark bar is visible and the user has
    not already selected a location, i.e. we are updating the default
    location only from the "Mobile" to "Desktop" (i.e. bookmark bar)
    folder. This change only applies to NORMAL type bookmarks, and not
    other items such as reading list or price trackers.

    We update the behavior of setting the last used parent (folder) to
    no longer update when the default folder is used. We do this to account
    for the case where a user bookmarks a page (which goes into Mobile
    Bookmarks), then shows the bookmark bar, and bookmarks a new page. If
    we save the location after the first bookmark event, then the next
    event with the bookmark bar visible would not save to the bookmark bar.
    We do want it to save to the bookmark bar though, because the user
    didn't explicitly choose the default location the previous time. Once
    the user picks a new location, then that location is used going forward.

    We overload the method to add new bookmarks to include a boolean for the
    bookmark bar visibility, and one that mimics the original without the
    parameter. For instances where this is not relevant (e.g. adding a new
    bookmark from the tab list), we will not use the bookmark bar visibility
    check because the bar cannot be visible in that case.

    Bug: 444468570
    Change-Id: I691736736a269e889b00f512efac338dc69c4947
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7063535
    Commit-Queue: Mark Schillaci <mschillaci@google.com>
    Reviewed-by: Brandon Wylie <wylieb@google.com>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1534454}
2025-11-18 11:27:36 -05:00
Artem Samoilenko 10cd95168e [cr143][Android] Changes for new SettingsIntentUtil.createIntent
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/023128ed40ef043a55ef085be41c92ba52f366ca

commit 023128ed40ef043a55ef085be41c92ba52f366ca
Author: Hidehiko Abe <hidehiko@chromium.org>
Date:   Mon Oct 20 20:31:22 2025 -0700

    Fix payment Add Card fragment "cancel" stack behavior.

    Opening Add Card fragment wrongly wiped the fragment back stack.
    This CL add a flag to keep the stack and put the fragment on top
    of the stack. Then, add the flag on opening Add Card fragment.

    BUG=452828634
    TEST=Tryjob. On Dut, open "Paymen methods > Add payment method",
         and made sure the detailed title behavior and the cancel button.

    Change-Id: Ie5caefa814f54bb3a0430350852f3ce550fe2281
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7053182
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1532719}
2025-11-18 11:27:07 -05:00
Artem Samoilenko 9a64370434 [cr143][Android] Changes for metrics for the effect of the delayed Message request
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/01d95e61ef62d60b47ceb398266ad098f99589cd

commit 01d95e61ef62d60b47ceb398266ad098f99589cd
Author: Jinsuk Kim <jinsukkim@chromium.org>
Date:   Thu Oct 16 18:20:54 2025 -0700

    [mtb-cct] Add metrics for the effect of the delayed Message request

    We were showing CPA over Message for Reader Mode by putting all the
    Message display requests (ReaderModeManager #tryShowingPrompt) on hold
    until we get a CPA display request (ReaderModeManager#
    onContextualPageActionShown), only then decide what to do i.e.
    if CPA will be shown then do not show Message, or if CPA button is
    hidden, call #tryShowingPrompt again to display Message.

    This caused Message UI to be displayed not when it was requested,
    but some time later, at which point certain conditions might have
    changed. We're interested in how often this delayed request can
    fail due to the changes in the conditions in the meantime. This CL
    adds a couple of histograms that let us know the stats.

    Bug: 452029995
    Change-Id: Id86478d15d7426ff53c05cf4a59214b08ac55bb2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7040031
    Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org>
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1531166}
2025-11-18 11:26:21 -05:00
Artem Samoilenko 562c4de0f5 [cr143][Android] Changes for sign-in promo view
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/2f15e80d353d410c1ca49a751ffce45ea1aa3566

commit 2f15e80d353d410c1ca49a751ffce45ea1aa3566
Author: quacksort <quacksort@google.com>
Date:   Fri Oct 17 08:04:18 2025 -0700

    [Signin][Android] Move seamless sign-in promo view outside of discover feed in NTP

    When seamless sign-in is enabled, the the sign-in promo has now been
    moved outside of the discover feed, above the magic stack cards.

    This still uses the old strings.

    Screenshot: https://crbug.com/437119756#attachment70217969

    Bug: 437119756
    Change-Id: Id4eb35e9756d80f22a62b4551b70fce3abb35ae9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6973684
    Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
    Reviewed-by: Menghan Yang <myuu@google.com>
    Commit-Queue: Lucia Giorgi <quacksort@google.com>
    Cr-Commit-Position: refs/heads/main@{#1531427}
2025-11-18 11:26:21 -05:00
Artem Samoilenko 9726b779e6 [cr143][Android] Merge upstream Appearance settings with ours
Upstream is rolling out new `Bookmarks Bar` feature that is controlled from their `Appearance` settings.
So here we merge our `Appearance` settings with theirs to have all new features there with upstream's logic of when they are supposed to be available.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/df2378696a4b27302afda4f38e1dad262896233c

commit df2378696a4b27302afda4f38e1dad262896233c
Author: Mark Schillaci <mschillaci@google.com>
Date:   Fri Oct 3 12:21:53 2025 -0700

    [Bookmarks Bar] Update field trial config

    This CL updates the bookmarks bar field trial config  to include Top
    Controls Refactor and removes the standalone entry of the same.

    Bug: N/A
    Change-Id: I9c6b4b0eab4b32132e547457f52e3ed540eb355a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7008653
    Reviewed-by: Theresa Sullivan <twellington@chromium.org>
    Commit-Queue: Mark Schillaci <mschillaci@google.com>
    Auto-Submit: Mark Schillaci <mschillaci@google.com>
    Commit-Queue: Theresa Sullivan <twellington@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1524918}
2025-11-18 11:26:20 -05:00
Artem Samoilenko cbd8bbb4ad [cr143][Android] Repurpose the NavigationFulfillmentType as AutocompleteRequestType
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/03aed3783cb14b11edadc8384d4c411be6d54162

commit 03aed3783cb14b11edadc8384d4c411be6d54162
Author: Tomasz Wiszkowski <ender@google.com>
Date:   Thu Oct 16 09:21:59 2025 -0700

    Repurpose the `NavigationFulfillmentType` as `AutocompleteRequestType`.

    This change allows us to expand the NFT to capture not just surfaces,
    but general Autocomplete intents, such as Prefetch.

    Bug: 446710500
    Change-Id: I566fb0b304ac7f45fc39957189fd1e2c9cd45225
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7046726
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1530899}
2025-11-18 11:26:20 -05:00
Artem Samoilenko c67a932e0a [cr143][Android] Changes for window manager dialog NTP MVT
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/6c903cc5404a995db06c207491031540a77ad78b

commit 6c903cc5404a995db06c207491031540a77ad78b
Author: Joel Tan-Aristy <jtanaristy@google.com>
Date:   Mon Oct 13 18:10:59 2025 -0700

    [Incognito Window] Shows window manager dialog NTP MVT.

    When long pressing NTP MVT and clicking "Open in other window",
    shows window manager dialog that allows users to select the dialog
    in which the MVT tile is opened in.

    If there is only one window open, just opens the MVT tile in a new
    window.

    http://screencast/cast/NTMxNTM0OTk2MzYwMzk2OHw0ODhkZTg3Mi0yOQ

    Bug: 435490901
    Change-Id: I1d7316deb9a443d7b91f2280904762f9ed4347b7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7017484
    Reviewed-by: Shu Yang <shuyng@google.com>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Commit-Queue: Joel Tan-Aristy <jtanaristy@google.com>
    Cr-Commit-Position: refs/heads/main@{#1529244}
2025-11-18 11:19:00 -05:00
Artem Samoilenko d5237e5811 [cr143][Android] Fix for TextConcatSpace warning
Warning fixed:
../../brave/android/java/org/chromium/chrome/browser/password_manager/settings/PasswordSettings.java:290: Warning: Missing space between "fragment" on the previous line and "argument," here? Resulting string is "fragmentargument,". [TextConcatSpace]
                        + "argument, but none was provided.";
2025-11-18 11:18:57 -05:00
Artem Samoilenko a97ef08be9 [cr143][Android] Switch switch-to-tab to using OmniboxActionDelegate
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e5dade5e169fefd7e33b5696282d6407dad1134b

commit e5dade5e169fefd7e33b5696282d6407dad1134b
Author: Jian Li <jianli@chromium.org>
Date:   Fri Oct 10 18:19:30 2025 -0700

    Switch switch-to-tab to using OmniboxActionDelegate

    Update switch-to-tab functionality for both button and chip to using
    the new unified implementation in OmniboxActionDelegate

    Bug: 409339245
    Change-Id: Ifc1b0f8dbedd4ee89dfa70acc75b491b26a804e2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7023719
    Commit-Queue: Jian Li <jianli@chromium.org>
    Reviewed-by: Tomasz Wiszkowski <ender@google.com>
    Reviewed-by: Sky Malice <skym@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1528474}
2025-11-18 11:18:57 -05:00
Artem Samoilenko 5e69d71e08 [cr143][Android] Changes for ListMenu.Delegate params
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/cb981d31a11e2ad9d9d519e2d790e12e1fedfa3c

commit cb981d31a11e2ad9d9d519e2d790e12e1fedfa3c
Author: Masa Fujita <massan@google.com>
Date:   Thu Oct 9 20:03:59 2025 -0700

    flyout: a11y: Allow users to control flyout menus with keyboard

    This CL adds the ability for the user to use the keyboard to control the
    flyout menus.

    When the user selects an item with arrow keys and decides to proceed,
    the `View`'s click listeneris called. We capture this and run the flyout
    logic when necessary.

    This CL also makes it so that `ListMenuItemAdapter` sets up the view to
    use both the delegate and the click listener upon click.

    Bug: 447103380
    Change-Id: I4560508cdfe63fab553e44478bb48d3ed528caca
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6978443
    Reviewed-by: Peter Conn <peconn@chromium.org>
    Reviewed-by: Ted Choc <tedchoc@chromium.org>
    Reviewed-by: Jenna Himawan <jhimawan@google.com>
    Commit-Queue: Masa Fujita <massan@google.com>
    Cr-Commit-Position: refs/heads/main@{#1527899}
2025-11-18 11:18:53 -05:00
Artem Samoilenko 9e35395989 [cr143][Android] Changes for controls position for top control layers
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/01631371f40ab8d0507313d933d7b17f6d7fb3fa

commit 01631371f40ab8d0507313d933d7b17f6d7fb3fa
Author: Wenyu Fu <wenyufu@chromium.org>
Date:   Wed Oct 8 15:57:48 2025 -0700

    [BrowserControls] Check browser controls position for top control layers

    Alternative approach for crrev.com/c/7017923. Consider toolbar and progress bar hidden when controls position is at the bottom.

    Bug: 449925889
    Change-Id: I745a73e988624565db5c2b4b2993bb700e0e514f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7021342
    Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527208}
2025-11-18 11:18:52 -05:00
Artem Samoilenko 5c4141731f [cr143][Android] Changes for omnibox zoom indicator
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e9a48c51f61fa4a51510be4240accd03b402405c

commit e9a48c51f61fa4a51510be4240accd03b402405c
Author: Hitarth Kothari <hitarthkothari@google.com>
Date:   Wed Oct 8 12:26:45 2025 -0700

    [Zoom Indicator] Add omnibox zoom indicator

    Demo: http://screencast/cast/NTkwNzk3Mjk3MzY1ODExMnw3YjVkNWNlZi05ZQ

    Bug: 442549901

    Change-Id: Iab5c50b4a78659fdc4b980250fadee07dd909078
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6986161
    Commit-Queue: Hitarth Kothari <hitarthkothari@google.com>
    Reviewed-by: Mark Schillaci <mschillaci@google.com>
    Auto-Submit: Hitarth Kothari <hitarthkothari@google.com>
    Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1527091}
2025-11-18 11:18:52 -05:00
Artem Samoilenko a490d490c0 [cr143][Android] Changes for kLinkedServicesSetting disabled code
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8e0ca53362ef330a49b98c7add3a7857fc82405e

commit 8e0ca53362ef330a49b98c7add3a7857fc82405e
Author: Martin Šrámek <msramek@chromium.org>
Date:   Tue Oct 7 11:40:45 2025 -0700

    Remove the kLinkedServicesSetting disabled code on Desktop and Android

    Since the feature has been launched.

    Apart from removing many references to the feature, flag, and tests, we're also adapting the ManageSyncSettings code from the previous approach (where the old strings were set in the XML file and the new strings programmatically overwritten in the Java code) to one where the strings are simply set in the XML file.

    We're not removing the equivalent codepaths on iOS, where it hasn't launched yet.

    Bug: 343132001
    Change-Id: I8b92689b67db9485e87dd99657a32f1601277553
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7006398
    Reviewed-by: Rainhard Findling <rainhard@chromium.org>
    Commit-Queue: Martin Šrámek <msramek@chromium.org>
    Reviewed-by: Marc Treib <treib@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1526439}
2025-11-18 11:18:49 -05:00
Artem Samoilenko 53cb0a4775 [cr143][Android] Changes for refactor initialization of NtpCustomizationConfigManager
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e9da334545f4152c14f5e60b2209b89ae7f49d9b

commit e9da334545f4152c14f5e60b2209b89ae7f49d9b
Author: Xi Han <hanxi@google.com>
Date:   Fri Oct 3 14:58:20 2025 -0700

    [Theme] Refactor initialization of NtpCustomizationConfigManager.

    In this CL, we split the initialization of NtpCustomizationConfigManager:
    - For customized colors: move to maybeInitializeColorTheme() and it is
      triggered when listener is added which can provide the current
      Activity's context. This is because a colorId could return different
      color value in light|dark modes.
    - For customized images: initialization remains in the constructor.
    This is a refactoring CL without any behaviour changes.

    Bug: 423579377
    Change-Id: I9852565c0d4042fa4f0a4970756823ad88e6dd10
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7003871
    Reviewed-by: Xinyi Ji <xinyiji@chromium.org>
    Commit-Queue: Xi Han <hanxi@chromium.org>
    Reviewed-by: Wenyu Fu <wenyufu@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1525042}
2025-11-18 11:18:44 -05:00
Artem Samoilenko 3f56de865e [cr143][Android] shouldShowDeleteButton is package available now
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/565cfd616cb5b812fa1f4a2c8eee4465dd5542b1

commit 565cfd616cb5b812fa1f4a2c8eee4465dd5542b1
Author: Charles Hager <clhager@google.com>
Date:   Thu Oct 2 12:03:29 2025 -0700

    Add width consumer for the location bar buttons

    This adds a new ToolbarWidthConsumer for the location bar's buttons
    (install, mic, lens, bookmark). The exact order is arbitrary, as
    the buttons are all roughly the same priority other than the bookmark
    button being the highest priority to keep visible.

    https://screencast.googleplex.com/cast/NDkzNjUwODY4MjI3Mjc2OHwyZjNlYjhlMC00ZA

    Bug: 427260734
    Change-Id: Icf0ed2bcf86886ee7806d8c7bd4d9c081268debe
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6945458
    Reviewed-by: Patrick Noland <pnoland@chromium.org>
    Commit-Queue: Charles Hager <clhager@google.com>
    Reviewed-by: Sirisha Kavuluru <skavuluru@google.com>
    Cr-Commit-Position: refs/heads/main@{#1524367}
2025-11-18 11:18:40 -05:00
Artem Samoilenko 3b6a5d959f [cr143][Android] Move KeyboardUtils
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e50285a9934a39e9f3a9c1780503221a08d5479a

commit e50285a9934a39e9f3a9c1780503221a08d5479a
Author: Henrique Nakashima <hnakashima@chromium.org>
Date:   Tue Sep 30 09:13:01 2025 -0700

    [Android] Warn when a test finishes with the soft keyboard open

    Partial reland of:
    https://chromium-review.googlesource.com/c/chromium/src/+/6978789

    Change: do not try to close the soft keyboard:
    https://chromium-review.googlesource.com/c/chromium/src/+/6997047/1..6

    Do not try to close the soft keyboard yet, just warn. Will add the
    action of closing the soft keyboard (tolerating errors if it doesn't)
    in a subsequent CL to reduce churn.

    This is a reland of commit 89195c9d05e56a978db6f8ffe54b2d3327e661fd

    Bug: 446713988
    Cq-Include-Trybots: luci.chromium.try:android-cronet-arm-dbg
    Bypass-Check-License: Moving files
    Change-Id: I74e254f383a77c9db597932cd0b38e02c6069e75
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6997047
    Owners-Override: Henrique Nakashima <hnakashima@chromium.org>
    Reviewed-by: Andrew Grieve <agrieve@chromium.org>
    Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1522902}
2025-11-18 11:18:37 -05:00
Terry Mancey 75a2652d65 [ads] Remove Android super referrals (#32158)
Remove Android Super Referrals. The feature is no longer supported or
used, and this cleanup helps reduce unused code and simplify the overall
system as part of https://github.com/brave/brave-browser/issues/44403.
2025-11-17 15:23:55 -05:00
samartnik 7a2ae80b90 Revert "[Android] Integrate upstream's qr code reader instead of our own" (#32354)
Revert "[Android] Integrate upstream's qr code reader instead of our own (#32…"

This reverts commit 000acdf61c.
2025-11-17 11:18:38 -07:00
Simone Arpe 315796e80c Reset scroll position for Brave overflow main menu when it's shown (#32323)
Resets the overflow main menu to the top every time is shown. Modifications are applied using bytecode manipulations as we needed to modify upstream class `AppMenuHandlerImpl`.
2025-11-17 16:12:05 +01:00
Szilard Szaloki 8698c26abb [Android] Sync Account section with registration flow. (#32319) 2025-11-14 22:31:31 +01:00
samartnik 000acdf61c [Android] Integrate upstream's qr code reader instead of our own (#32312) 2025-11-13 14:54:06 -05:00
AlexeyBarabash f8efc4b140 [Android][Codehealth] Removed @NullUnmarked annotations (#32203)
Resolves https://github.com/brave/brave-browser/issues/50674
2025-11-06 17:44:53 +02:00
samartnik 0d14b8f81f [Code Health][Android] Clean up generic callback interfaces (#32163)
Here we remove the original interfaces and move them directly to the places they are used.
Interfaces are still genereric, replacing them to a specific interfaces should be done when these parts of code are touched.
In addition, in this PR were fixed presubmit warnings in the files that were touched.
2025-10-31 20:32:21 -04:00
Simone Arpe e2e5bde6e9 (Wallet) Perform refactoring of DApp fragments (#32146)
Introduces a unified Wallet-fragment architecture that centralizes how Brave's Android wallet UI talks to WalletModel, manages pending transactions, and stays in sync with keyring state.
2025-10-31 19:12:39 +01:00
Serg d1c604c508 Android fresh ntp after idle (#32132)
[Android] Adds kBraveFreshNtpAfterIdleExpirement experiment flag.

That commit adds the flag with parameters and a functionality
to use cached flags on Android.
Resolves: https://github.com/brave/brave-browser/issues/50567
2025-10-31 09:35:04 -04:00
AlexeyBarabash 58af432064 Android home settings radio (#32107)
* [Android] Any home custom url with bookmarks treated as Mobile bookmarks

Resolves https://github.com/brave/brave-browser/issues/50499
2025-10-30 16:25:43 +02:00
Oliver cd655bf8ec [Android] Apply tinting for Import/Export password manager icons (#32099)
Previously, the import/export icons were not correctly tinted when the
Android OS was set to dark mode.

To correct this, the icons no longer use a hard-coded fill colour and an
iconTint property is applied in order to leverage the built-in support
that Chromium has for automatically adjusting icons for light/dark mode.

The icons have also been replaced with the upload/download SVG paths
from the brave/leo repo.

Resolves brave/brave-browser#50232
2025-10-29 22:06:48 +00:00
AlexeyBarabash d448fde427 [Android] Fixed issue with passwords search (#32030)
* [Android] Fixed issue with passwords search

Resolves https://github.com/brave/brave-browser/issues/50367
2025-10-29 18:10:00 +02:00
Oliver 8432924a73 [Android] Fix VPN Enrollment screens not closing (#31973)
Previously, we removed a call to bringChromeTabbedActivityToTheTop in
order to prevent closing the server country selection dialog.

However, this introduced a regression in that the enrollment screens
which depend on this call no longer close and the user would resultantly
have to back out of them.

Now, we conditionally invoke the call unless the activity is coming from
either the country selection or city selection dialog.

Unit tests have been added to verify the behaviour.

Resolves brave/brave-browser#50163
2025-10-24 18:55:17 +01:00
AlexeyBarabash 2de661e1f9 [cr142] Fixed open Mobile bookmarks folder as home page (#31967)
* [cr142] Fixed open Mobile bookmarks folder as home page

Resolves https://github.com/brave/brave-browser/issues/50294

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

	components/bookmark_codec: start writing sha256

	Writepath changes: Start writing SHA256 alongside MD5. Readpath changes:
	Read MD5 and optionally SHA256.

	After a couple of milestones, intended change is to stop writing the md5
	but continue reading both. A few milestones after that, stop reading
	md5.

	Include `EnableBookmarkCodecSHA256` in case this cl needs to be disabled
	via go/finch-killswitch.

	Enabled-by-default-reason: killswitch EnableBookmarkCodecSHA256
	Bug: 426243026
	Change-Id: Ie545e1a3563dc3add88408899a6704016276e901
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6710952
2025-10-23 15:57:15 +03:00
Serg d04fd96056 [CodeHealth] Applies NullMarked to InAppPurchaseWrapper.java. (#31982)
Resolves: https://github.com/brave/brave-browser/issues/49649
2025-10-22 23:08:50 +01:00
Oliver 3c4e0f125d [Android] Fix VPN city selection UI to reflect an option choice (#31976)
Previously in af14cfe912 we fixed the
server selection dialog and prevented dialog closure when the user
selects an option.

As a result, the city selection dialog also needed code added to ensure
that it updated when the user selected an option. This commit implements
that change in the same manner as the aforementioned one.

Resolves brave/brave-browser#50159
2025-10-22 22:05:21 +01:00