From a5e03a666436caa695ceb1f63e84e705ef16ad62 Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Wed, 20 Oct 2021 21:56:34 +0200 Subject: [PATCH] Add custom tab intents privacy option and force open external links in incognito flag. (#1489) Add-custom-tab-intents-privacy-option.patch and Force-open-external-links-in-incognito.patch have been unified --- build/bromite_patches_list.txt | 3 +- .../patches/Add-intents-privacy-option.patch | 174 ++++++++++++++++++ 2 files changed, 175 insertions(+), 2 deletions(-) create mode 100644 build/patches/Add-intents-privacy-option.patch diff --git a/build/bromite_patches_list.txt b/build/bromite_patches_list.txt index 88e60316..feee3918 100644 --- a/build/bromite_patches_list.txt +++ b/build/bromite_patches_list.txt @@ -53,7 +53,6 @@ Add-flag-to-configure-maximum-connections-per-host.patch Do-not-ignore-download-location-prompt-setting.patch Add-bookmark-import-export-actions.patch Add-an-always-incognito-mode.patch -Add-custom-tab-intents-privacy-option.patch Add-option-to-not-persist-tabs-across-sessions.patch Disable-fetching-of-all-field-trials.patch Disable-seed-based-field-trials.patch @@ -157,8 +156,8 @@ Override-UA-client-hint-for-model.patch Disable-AGSA-by-default.patch Allow-building-without-enable_reporting.patch Disable-lock-icon-in-address-bar-by-default.patch -Force-open-external-links-in-incognito.patch Enable-share-intent.patch Site-setting-for-images.patch Bromite-auto-updater.patch Automated-domain-substitution.patch +Add-intents-privacy-option.patch \ No newline at end of file diff --git a/build/patches/Add-intents-privacy-option.patch b/build/patches/Add-intents-privacy-option.patch new file mode 100644 index 00000000..7c466f65 --- /dev/null +++ b/build/patches/Add-intents-privacy-option.patch @@ -0,0 +1,174 @@ +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Wed, 29 Aug 2018 11:03:44 +0200 +Subject: Add custom tab intents privacy option + +Add custom tab intents privacy option and force +open external links in incognito flag. + +Flags are mutually exclusive. + +See also: https://github.com/bromite/bromite/issues/1474 +--- + .../java/res/xml/privacy_preferences.xml | 10 ++++++ + .../browser/LaunchIntentDispatcher.java | 19 ++++++++++ + .../privacy/settings/PrivacySettings.java | 35 +++++++++++++++++++ + .../strings/android_chrome_strings.grd | 15 ++++++++ + 4 files changed, 79 insertions(+) + +diff --git a/chrome/android/java/res/xml/privacy_preferences.xml b/chrome/android/java/res/xml/privacy_preferences.xml +--- a/chrome/android/java/res/xml/privacy_preferences.xml ++++ b/chrome/android/java/res/xml/privacy_preferences.xml +@@ -56,6 +56,16 @@ + android:fragment="org.chromium.chrome.browser.privacy.settings.DoNotTrackSettings" + android:key="do_not_track" + android:title="@string/do_not_track_title"/> ++ ++ + <resetlink>reset sync

+ Show original + ++ ++ ++ Allow custom tab intents ++ ++ ++ Allow applications to open custom tab intents, similar to webview. ++ ++ ++ ++ ++ Open external links in incognito ++ ++ ++ Force the opening of all external links in incognito mode ++ + + + +-- +2.17.1 +