Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(819)

Unified Diff: components/os_crypt/BUILD.gn

Issue 2297573002: Implement gnome-keyring for OSCrypt (Closed)
Patch Set: Fixed malloc - delete mismatch Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/os_crypt/key_storage_keyring.h » ('j') | components/os_crypt/key_storage_keyring.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/os_crypt/BUILD.gn
diff --git a/components/os_crypt/BUILD.gn b/components/os_crypt/BUILD.gn
index 8346847d3efe131a21e8fbab38e7d2e8e42aac67..5794c56ffadc6bc3c82c2c58067b4f4c4f90ce3a 100644
--- a/components/os_crypt/BUILD.gn
+++ b/components/os_crypt/BUILD.gn
@@ -81,10 +81,13 @@ static_library("os_crypt") {
if (use_gnome_keyring) {
sources += [
+ "key_storage_keyring.cc",
+ "key_storage_keyring.h",
"keyring_util_linux.cc",
"keyring_util_linux.h",
]
configs += [ ":gnome_keyring" ]
+ defines += [ "USE_KEYRING" ]
}
if (use_glib) {
sources += [
@@ -127,6 +130,9 @@ static_library("test_support") {
"os_crypt_mocker_linux.h",
]
defines = []
+ if (use_gnome_keyring) {
+ defines += [ "USE_KEYRING" ]
+ }
if (use_glib) {
defines += [ "USE_LIBSECRET" ]
}
@@ -156,6 +162,12 @@ source_set("unit_tests") {
sources += [ "os_crypt_linux_unittest.cc" ]
defines = []
+ if (use_gnome_keyring) {
+ sources += [ "key_storage_keyring_unittest.cc" ]
+ configs += [ ":gnome_keyring" ]
+ deps += [ "//base/test:test_support" ]
+ defines += [ "USE_KEYRING" ]
+ }
if (use_glib) {
sources += [ "os_crypt_util_linux_unittest.cc" ]
deps += [ "//third_party/libsecret" ]
« no previous file with comments | « no previous file | components/os_crypt/key_storage_keyring.h » ('j') | components/os_crypt/key_storage_keyring.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698