Skip to content

Commit

Permalink
fixed build on android
Browse files Browse the repository at this point in the history
Signed-off-by: Vadym Struts <[email protected]>
  • Loading branch information
vadimstruts authored and SergeyZhukovsky committed Sep 21, 2023
1 parent 6d95267 commit feb1b88
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit feb1b88

Please sign in to comment.