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

Unified Diff: components/os_crypt/os_crypt_linux.cc

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_linux.cc
diff --git a/components/os_crypt/os_crypt_linux.cc b/components/os_crypt/os_crypt_linux.cc
index b8b6ada030eda973d57d5ffd6cb9531a96403696..427640528de5bac2c8ffcf1c7f58b30267085a53 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::EnablePreference(bool enable_preference) {
+ // Setting initialisation parameters makes no sense after initializing.
+ DCHECK(!g_cache.Get().is_key_storage_cached);
+
+ KeyStorageLinux::EnablePreference(enable_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]();
« components/os_crypt/key_storage_util_linux.cc ('K') | « components/os_crypt/os_crypt.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698