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

Unified Diff: components/os_crypt/os_crypt.h

Issue 2948783002: Create setting that disables password stores (Closed)
Patch Set: nits + tests Created 3 years, 5 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 | « components/os_crypt/key_storage_util_linux_unittest.cc ('k') | components/os_crypt/os_crypt_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/os_crypt/os_crypt.h
diff --git a/components/os_crypt/os_crypt.h b/components/os_crypt/os_crypt.h
index b03d72608d6bbee16dba5b375a4de6e45e8cf7d1..b17abd1dd22f01a74fad8f1f5db8ed518e4478c1 100644
--- a/components/os_crypt/os_crypt.h
+++ b/components/os_crypt/os_crypt.h
@@ -17,6 +17,10 @@
#include "components/os_crypt/key_storage_linux.h"
#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
+namespace base {
+class FilePath;
+}
+
// The OSCrypt class gives access to simple encryption and decryption of
// strings. Note that on Mac, access to the system Keychain is required and
// these calls can block the current thread to collect user input. The same is
@@ -39,6 +43,13 @@ class OSCrypt {
static void SetMainThreadRunner(
scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner);
+ // Enable the feature where we determine if we should try a backend via a
+ // preference file.
+ static void ShouldUsePreference(bool should_use_preference);
+
+ // Set the folder, where OSCrypt will check for its preference file.
+ static void SetUserDataPath(const base::FilePath& path);
+
// Returns true iff the real secret key (not hardcoded one) is available.
static bool IsEncryptionAvailable();
#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
« no previous file with comments | « components/os_crypt/key_storage_util_linux_unittest.cc ('k') | components/os_crypt/os_crypt_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698