From feb1b88b7fe2733849cc476b631080d07c4a79cd Mon Sep 17 00:00:00 2001 From: Vadym Struts Date: Wed, 20 Sep 2023 00:49:06 +0200 Subject: [PATCH] fixed build on android Signed-off-by: Vadym Struts --- .../android/browsing_data/browsing_data_bridge.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chromium_src/chrome/browser/android/browsing_data/browsing_data_bridge.cc b/chromium_src/chrome/browser/android/browsing_data/browsing_data_bridge.cc index ec993b4a503c..db7e4b629f8c 100644 --- a/chromium_src/chrome/browser/android/browsing_data/browsing_data_bridge.cc +++ b/chromium_src/chrome/browser/android/browsing_data/browsing_data_bridge.cc @@ -3,9 +3,20 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include "brave/components/ai_chat/common/buildflags/buildflags.h" + +#if !BUILDFLAG(ENABLE_AI_CHAT) #define BRAVE_CLEAR_BROWSING_DATA \ remove_mask |= BrowsingDataRemover::DATA_TYPE_DOWNLOADS; \ break; +#else // BUILDFLAG(ENABLE_AI_CHAT) +#define BRAVE_CLEAR_BROWSING_DATA \ + remove_mask |= BrowsingDataRemover::DATA_TYPE_DOWNLOADS; \ + break; \ + case browsing_data::BrowsingDataType::BRAVE_AI_CHAT: \ + remove_mask |= chrome_browsing_data_remover::DATA_TYPE_BRAVE_LEO_HISTORY; \ + break; +#endif // BUILDFLAG(ENABLE_AI_CHAT) #include "src/chrome/browser/android/browsing_data/browsing_data_bridge.cc" #undef BRAVE_CLEAR_BROWSING_DATA