From 2befbb73253124c71ec0fd8e9b25f9e6bccb165f Mon Sep 17 00:00:00 2001 From: Anthony Tseng Date: Thu, 22 Jun 2017 16:10:02 -0700 Subject: [PATCH] Pull deps of gnome keyring and libsecret Auditors: @bridiver, @diracdeltas, @bsclifton --- chromium_src/BUILD.gn | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/chromium_src/BUILD.gn b/chromium_src/BUILD.gn index eb3da79dc1..47c0cc94fe 100644 --- a/chromium_src/BUILD.gn +++ b/chromium_src/BUILD.gn @@ -1,6 +1,7 @@ import("//build/config/features.gni") import("//build/config/ui.gni") import("//build/config/crypto.gni") +import("//components/os_crypt/features.gni") import("//extensions/features/features.gni") import("//media/media_options.gni") import("//ppapi/features/features.gni") @@ -612,8 +613,11 @@ source_set("password_manager") { "//components/password_manager/content/browser", "//components/password_manager/core/browser", "//components/password_manager/core/common", + "//components/os_crypt", ] + defines = [ ] + if (is_linux) { if (use_x11) { sources += [ @@ -624,6 +628,25 @@ source_set("password_manager") { if (use_dbus) { deps += [ "//dbus" ] } + + if (use_gnome_keyring) { + sources += [ + "//chrome/browser/password_manager/native_backend_gnome_x.cc", + "//chrome/browser/password_manager/native_backend_gnome_x.h", + ] + configs += [ "//components/os_crypt:gnome_keyring" ] + } + + # libsecret hard depends on GLib. + if (use_glib) { + sources += [ + "//chrome/browser/password_manager/native_backend_libsecret.cc", + "//chrome/browser/password_manager/native_backend_libsecret.h", + ] + defines += [ "USE_LIBSECRET" ] + deps += [ "//third_party/libsecret" ] + } + sources += [ "//chrome/browser/password_manager/native_backend_kwallet_x.h", "//chrome/browser/password_manager/native_backend_kwallet_x.cc",