Files
vadims cec58890a6 [Shred] Privacy Bypass – Private Tab Domain Disclosure via “Shred Data” Popup on Brave Android (#36920)
Added an ability to hide the manual shred button when the tab switch
mode is active in incognito mode and private tabs are locked.

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

Signed-off-by: Vadym Struts <vstruts@brave.com>
2026-06-05 09:43:44 +02:00

44 lines
1.5 KiB
Plaintext

# Copyright (c) 2025 The Brave Authors. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at https://mozilla.org/MPL/2.0/.
import("//build/config/android/rules.gni")
import("//third_party/jni_zero/jni_zero.gni")
assert(is_android)
android_library("java") {
resources_package = "org.chromium.chrome.browser.brave_shields"
sources = [
"java/src/org/chromium/chrome/browser/brave_shields/BraveFirstPartyStorageCleanerUtils.java",
"java/src/org/chromium/chrome/browser/brave_shields/FirstPartyStorageCleanerAnimationFragment.java",
"java/src/org/chromium/chrome/browser/brave_shields/FirstPartyStorageCleanerInterface.java",
]
deps = [
":java_resources",
"//base:base_java",
"//chrome/browser/incognito:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/tab:java",
"//third_party/android_deps:com_airbnb_android_lottie_java",
"//third_party/androidx:androidx_fragment_fragment_java",
"//third_party/jni_zero:jni_zero_java",
]
srcjar_deps = [ ":jni_headers" ]
}
# Brave-specific resources.
android_resources("java_resources") {
sources = [
"java/brave-res/layout/brave_first_party_storage_cleaner_animation.xml",
"java/brave-res/layout/brave_shred_data_button.xml",
]
}
generate_jni("jni_headers") {
sources = [ "java/src/org/chromium/chrome/browser/brave_shields/BraveFirstPartyStorageCleanerUtils.java" ]
}