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

Unified Diff: components/os_crypt/os_crypt.h

Issue 2948783002: Create setting that disables password stores (Closed)
Patch Set: lint 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
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..e8b88cdbb444fb9af0d949eace8b2cd04c27fcce 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 EnablePreference(bool enable_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)

Powered by Google App Engine
This is Rietveld 408576698