From c754ec2b83e5decbaa0a1d9fc4c5b48787f35544 Mon Sep 17 00:00:00 2001 From: Vadym Struts Date: Mon, 31 Jul 2023 21:16:41 +0200 Subject: [PATCH 01/11] implemented history clearing handler + reset leo confirmation Signed-off-by: Vadym Struts --- app/brave_settings_strings.grdp | 15 ++++- .../brave_browsing_data_remover_delegate.cc | 12 ++++ .../brave_browsing_data_remover_delegate.h | 3 + .../brave_clear_browsing_data.cc | 7 +++ .../brave_clear_browsing_data_browsertest.cc | 3 + .../api/settings_private/brave_prefs_util.cc | 4 ++ ...rave_clear_browsing_data_on_exit_page.html | 8 +++ .../brave_clear_browsing_data_on_exit_page.ts | 6 ++ .../brave_leo_assistant_page.ts | 6 +- .../clear_browsing_data_dialog.ts | 33 +++++++++++ ...ave_settings_localized_strings_provider.cc | 6 ++ .../chrome_browsing_data_remover_constants.h | 18 ++++++ .../settings_clear_browsing_data_handler.cc | 11 ++++ .../components/browsing_data/core/DEPS | 3 + .../browsing_data/core/browsing_data_utils.cc | 57 +++++++++++++++++++ .../browsing_data/core/browsing_data_utils.h | 18 ++++++ .../browsing_data/core/pref_names.cc | 9 +++ .../browsing_data/core/pref_names.h | 7 ++- 18 files changed, 223 insertions(+), 3 deletions(-) create mode 100644 chromium_src/chrome/browser/browsing_data/chrome_browsing_data_remover_constants.h create mode 100644 chromium_src/components/browsing_data/core/DEPS create mode 100644 chromium_src/components/browsing_data/core/browsing_data_utils.cc create mode 100644 chromium_src/components/browsing_data/core/browsing_data_utils.h diff --git a/app/brave_settings_strings.grdp b/app/brave_settings_strings.grdp index 1f48049b3a26..82c2004bc6f2 100644 --- a/app/brave_settings_strings.grdp +++ b/app/brave_settings_strings.grdp @@ -1415,7 +1415,20 @@ Clear Leo data -