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

Unified Diff: components/os_crypt/os_crypt.h

Issue 1973483002: OSCrypt for POSIX uses libsecret to store a randomised encryption key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored CL Created 4 years, 7 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
Index: components/os_crypt/os_crypt.h
diff --git a/components/os_crypt/os_crypt.h b/components/os_crypt/os_crypt.h
index ecffa4e5ed4c8c81b4acde3b8169b156eb305f51..243bb2c2dc269d2e30def360f30d530a572dbe6d 100644
--- a/components/os_crypt/os_crypt.h
+++ b/components/os_crypt/os_crypt.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/strings/string16.h"
#include "build/build_config.h"
+#include "components/os_crypt/key_storage_linux.h"
vabr (Chromium) 2016/05/13 15:10:18 You should #include this file unconditionally if y
cfroussios 2016/05/13 17:09:12 Right now, the entry-point to OSCrypt is this file
// The OSCrypt class gives access to simple encryption and decryption of
// strings. Note that on Mac, access to the system Keychain is required and
@@ -43,6 +44,10 @@ class OSCrypt {
static void UseMockKeychain(bool use_mock);
#endif
+#if defined(USE_LIBSECRET)
+ static KeyStorageMock* UseMockKeyStorage(bool use_mock);
vabr (Chromium) 2016/05/13 15:10:18 nit: Please describe what the method does.
cfroussios 2016/05/13 17:09:12 Done.
+#endif
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(OSCrypt);
};

Powered by Google App Engine
This is Rietveld 408576698