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

Unified Diff: components/os_crypt/os_crypt_linux.cc

Issue 2150543002: OSCrypt supports encryption with KWallet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 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
« components/os_crypt/key_storage_linux.cc ('K') | « 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 2104d25047f24771b0e0c89482729ad6cf956fa6..000bde4c4ef4b4346a8cec0212c72ae6aa592933 100644
--- a/components/os_crypt/os_crypt_linux.cc
+++ b/components/os_crypt/os_crypt_linux.cc
@@ -218,6 +218,14 @@ void OSCrypt::SetStore(const std::string& store_type) {
KeyStorageLinux::SetStore(store_type);
}
+// static
+void OSCrypt::SetProductName(const std::string& product_name) {
+ // Setting the product name makes no sense after initializing.
+ DCHECK(!g_cache.Get().is_key_storage_cached);
+
+ KeyStorageLinux::SetProductName(product_name);
+}
+
void UseMockKeyStorageForTesting(KeyStorageLinux* (*get_key_storage_mock)(),
std::string* (*get_password_v11_mock)()) {
// Save the real implementation to restore it later.
« components/os_crypt/key_storage_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