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

Unified Diff: components/os_crypt/key_storage_libsecret.cc

Issue 2461453002: Add a dummy entry with libsecret when initializing OSCrypt. (Closed)
Patch Set: fixed test Created 4 years, 2 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 | « no previous file | components/os_crypt/key_storage_libsecret_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/os_crypt/key_storage_libsecret.cc
diff --git a/components/os_crypt/key_storage_libsecret.cc b/components/os_crypt/key_storage_libsecret.cc
index 32c6d0905e17f1354b1c9e26ad2648ee9dd5b2ed..166a5b2360d4e74e10cef98a59c1020b623eff42 100644
--- a/components/os_crypt/key_storage_libsecret.cc
+++ b/components/os_crypt/key_storage_libsecret.cc
@@ -73,6 +73,8 @@ std::string KeyStorageLibsecret::AddRandomPasswordInLibsecret() {
}
std::string KeyStorageLibsecret::GetKey() {
+ LibsecretLoader::EnsureKeyringUnlocked();
vasilii 2016/10/28 09:36:24 How often is this method called? Is it enough to u
cfroussios 2016/10/28 11:21:22 GetKey() is called once and its result will be cac
+
GError* error = nullptr;
LibsecretAttributesBuilder attrs;
attrs.Append("application", kApplicationName);
« no previous file with comments | « no previous file | components/os_crypt/key_storage_libsecret_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698