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

Unified Diff: components/os_crypt/os_crypt_linux.cc

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/os_crypt.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/os_crypt/os_crypt_linux.cc
diff --git a/components/os_crypt/os_crypt_linux.cc b/components/os_crypt/os_crypt_linux.cc
index b8b6ada030eda973d57d5ffd6cb9531a96403696..758f06a3fa1ab128b5a600883d31d3b7f8c362cc 100644
--- a/components/os_crypt/os_crypt_linux.cc
+++ b/components/os_crypt/os_crypt_linux.cc
@@ -249,6 +249,22 @@ void OSCrypt::SetMainThreadRunner(
KeyStorageLinux::SetMainThreadRunner(main_thread_runner);
}
+// static
+void OSCrypt::ShouldUsePreference(bool should_use_preference) {
+ // Setting initialisation parameters makes no sense after initializing.
+ DCHECK(!g_cache.Get().is_key_storage_cached);
+
+ KeyStorageLinux::ShouldUsePreference(should_use_preference);
+}
+
+// static
+void OSCrypt::SetUserDataPath(const base::FilePath& path) {
+ // Setting initialisation parameters makes no sense after initializing.
+ DCHECK(!g_cache.Get().is_key_storage_cached);
+
+ KeyStorageLinux::SetUserDataPath(path);
+}
+
// static
bool OSCrypt::IsEncryptionAvailable() {
return g_get_password[Version::V11]();
« no previous file with comments | « components/os_crypt/os_crypt.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698