Update cookie consent checks

This commit is contained in:
deeppandya
2023-08-10 16:46:14 -04:00
parent 2e7c54ce5c
commit 1b896134a0
2 changed files with 5 additions and 23 deletions
@@ -388,14 +388,6 @@ public class BravePrivacySettings extends PrivacySettings implements ConnectionE
}
}
// if (mCookieListOptInPageAndroidHandler != null) {
// mCookieListOptInPageAndroidHandler.shouldShowDialog(shouldShowDialog -> {
// if (!shouldShowDialog) {
// removePreferenceIfPresent(PREF_BLOCK_COOKIE_CONSENT_NOTICES);
// }
// });
// }
updateBravePreferences();
}
@@ -941,21 +941,11 @@ public abstract class BraveToolbarLayoutImpl extends ToolbarLayout
}
private void maybeShowCookieConsentTooltip() {
if (mCookieListOptInPageAndroidHandler != null && mFilterListAndroidHandler != null) {
// mCookieListOptInPageAndroidHandler.shouldShowDialog(shouldShowDialog -> {
// mFilterListAndroidHandler.isFilterListEnabled(
// FilterListConstants.COOKIE_LIST_UUID, isEnabled -> {
// if (!isEnabled && shouldShowDialog
// && SharedPreferencesManager.getInstance().readBoolean(
// BravePreferenceKeys.SHOULD_SHOW_COOKIE_CONSENT_NOTICE,
// true)
// && SharedPreferencesManager.getInstance().readInt(
// BravePreferenceKeys.LOADED_SITE_COUNT, 0)
// > 5) {
// showCookieConsentTooltip();
// }
// });
// });
if (SharedPreferencesManager.getInstance().readBoolean(
BravePreferenceKeys.SHOULD_SHOW_COOKIE_CONSENT_NOTICE, true)
&& SharedPreferencesManager.getInstance().readInt(
BravePreferenceKeys.LOADED_SITE_COUNT, 0)
> 5) {
showCookieConsentTooltip();
}
}