Skip to content

Commit

Permalink
AI Chat: encrypt text
Browse files Browse the repository at this point in the history
  • Loading branch information
petemill committed Oct 12, 2024
1 parent 4d921a4 commit b6bf7d6
Show file tree
Hide file tree
Showing 11 changed files with 248 additions and 64 deletions.
1 change: 1 addition & 0 deletions browser/ai_chat/ai_chat_service_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ AIChatServiceFactory::BuildServiceInstanceForBrowserContext(
(g_brave_browser_process->process_misc_metrics())
? g_brave_browser_process->process_misc_metrics()->ai_chat_metrics()
: nullptr,
g_browser_process->os_crypt_async(),
context->GetDefaultStoragePartition()
->GetURLLoaderFactoryForBrowserProcess(),
version_info::GetChannelString(chrome::GetChannel()), context->GetPath());
Expand Down
3 changes: 3 additions & 0 deletions components/ai_chat/core/browser/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ static_library("browser") {
"//components/component_updater",
"//components/component_updater:component_updater_paths",
"//components/keyed_service/core",
"//components/os_crypt/async/browser",
"//components/os_crypt/async/common",
"//components/os_crypt/sync:os_crypt",
"//components/prefs",
"//components/user_prefs",
Expand Down Expand Up @@ -162,6 +164,7 @@ if (!is_ios) {
"//brave/components/skus/common:mojom",
"//components/component_updater:component_updater_paths",
"//components/component_updater:test_support",
"//components/os_crypt/async/browser:test_support",
"//components/os_crypt/sync:test_support",
"//components/prefs:test_support",
"//components/sync_preferences:test_support",
Expand Down
2 changes: 2 additions & 0 deletions components/ai_chat/core/browser/DEPS
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
include_rules = [
"+components/os_crypt/async",
"+services/data_decoder/public",
"+services/network/public",
"+absl/types/optional.h",
"+sql",
"+third_party/skia/include",
"+third_party/re2/src/re2",
"+third_party/tflite",
Expand Down
Loading

0 comments on commit b6bf7d6

Please sign in to comment.