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

Unified Diff: components/os_crypt/key_storage_linux.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/key_storage_linux.h
diff --git a/components/os_crypt/key_storage_linux.h b/components/os_crypt/key_storage_linux.h
index 394b6b38173be0b67fa890974ba40e6fcab08ac1..f3045a46990cdb510cec6174e8c7ed4c39201dd9 100644
--- a/components/os_crypt/key_storage_linux.h
+++ b/components/os_crypt/key_storage_linux.h
@@ -12,6 +12,7 @@
#include "base/memory/ref_counted.h"
namespace base {
+class FilePath;
class SingleThreadTaskRunner;
} // namespace base
@@ -34,6 +35,12 @@ class KeyStorageLinux {
static void SetMainThreadRunner(
scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner);
+ // Enables the use of the preference on using or ignoring backends.
+ static void EnablePreference(bool enable_preference);
vabr (Chromium) 2017/07/03 19:27:14 optional nit: I'm a bit confused by "enabling". Ca
cfroussios 2017/07/04 09:58:15 I have the same concerns with the name, but your p
vabr (Chromium) 2017/07/04 10:11:01 ShouldUsePreference sounds good to me.
+
+ // Preferences are stored in a separate file in the user data directory.
+ static void SetUserDataPath(const base::FilePath& path);
+
// Tries to load the appropriate key storage. Returns null if none succeed.
static std::unique_ptr<KeyStorageLinux> CreateService();

Powered by Google App Engine
This is Rietveld 408576698