From 7d101501e597f4dd38a480e12f7cd67a1b88b52b Mon Sep 17 00:00:00 2001 From: Pete Miller Date: Tue, 22 Oct 2024 16:49:02 -0700 Subject: [PATCH] Clean up AI Chat settings browser data deleter strings --- app/brave_settings_strings.grdp | 10 +++++----- .../brave_clear_browsing_data_on_exit_page.html | 4 ++-- .../brave_clear_browsing_data_on_exit_page.ts | 2 +- .../brave_overrides/clear_browsing_data_dialog.ts | 4 ++-- .../brave_settings_localized_strings_provider.cc | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/brave_settings_strings.grdp b/app/brave_settings_strings.grdp index e18de2ee52fc..ae9e8036ec7d 100644 --- a/app/brave_settings_strings.grdp +++ b/app/brave_settings_strings.grdp @@ -96,7 +96,7 @@ Position - Expand vertical tabs independently per window + Expand vertical tabs independently per window Show scrollbar @@ -1330,11 +1330,11 @@ Leo. This action can't be undone. Adjust autocomplete suggestions - - Leo + + Leo AI - - Data and chat history + + Chat history Default model for new conversations diff --git a/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_on_exit_page.html b/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_on_exit_page.html index fac819e1c81f..0e686ce59b29 100644 --- a/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_on_exit_page.html +++ b/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_on_exit_page.html @@ -30,8 +30,8 @@ diff --git a/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_on_exit_page.ts b/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_on_exit_page.ts index dc427c1ad1d7..15c2172e4b0d 100644 --- a/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_on_exit_page.ts +++ b/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_on_exit_page.ts @@ -43,7 +43,7 @@ Polymer({ }, }, - isLeoAssistantAndHistoryAllowed_: { + isAIChatAndHistoryAllowed_: { type: Boolean, value: function() { return loadTimeData.getBoolean('isLeoAssistantAllowed') diff --git a/browser/resources/settings/brave_overrides/clear_browsing_data_dialog.ts b/browser/resources/settings/brave_overrides/clear_browsing_data_dialog.ts index 8d298bc3ceb8..63352e217a00 100644 --- a/browser/resources/settings/brave_overrides/clear_browsing_data_dialog.ts +++ b/browser/resources/settings/brave_overrides/clear_browsing_data_dialog.ts @@ -133,8 +133,8 @@ RegisterPolymerTemplateModifications({ `) diff --git a/browser/ui/webui/settings/brave_settings_localized_strings_provider.cc b/browser/ui/webui/settings/brave_settings_localized_strings_provider.cc index 8c9a3f5307a4..5edbe2a25c00 100644 --- a/browser/ui/webui/settings/brave_settings_localized_strings_provider.cc +++ b/browser/ui/webui/settings/brave_settings_localized_strings_provider.cc @@ -421,10 +421,10 @@ void BraveAddCommonStrings(content::WebUIDataSource* html_source, IDS_SETTINGS_LEO_ASSISTANT_RESET_AND_CLEAR_DATA_CONFIRMATION_LABEL}, {"braveLeoAssistantAutocompleteLink", IDS_SETTINGS_LEO_ASSISTANT_AUTOCOMPLETE_LINK}, - {"leoClearHistoryData", - IDS_SETTINGS_LEO_ASSISTANT_CLEAR_HISTORY_DATA_LABEL}, - {"leoClearHistoryDataSubLabel", - IDS_SETTINGS_LEO_ASSISTANT_CLEAR_HISTORY_DATA_SUBLABEL}, + {"aiChatClearHistoryData", + IDS_SETTINGS_AI_CHAT_CLEAR_HISTORY_DATA_LABEL}, + {"aiChatClearHistoryDataSubLabel", + IDS_SETTINGS_AI_CHAT_CLEAR_HISTORY_DATA_SUBLABEL}, {"braveLeoPremiumLabelNonPremium", IDS_CHAT_UI_MODEL_PREMIUM_LABEL_NON_PREMIUM}, {"braveLeoAssistantModelSelectionLabel",