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

Unified Diff: components/os_crypt/libsecret_util_linux.cc

Issue 2444313002: Remove function casting from Libsecret tests (Closed)
Patch Set: typo 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 | « components/os_crypt/key_storage_libsecret_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/os_crypt/libsecret_util_linux.cc
diff --git a/components/os_crypt/libsecret_util_linux.cc b/components/os_crypt/libsecret_util_linux.cc
index 358bc1b57afffb2792d81ba15927d8867490939e..d908172c6833621dbbf304f173d16ea5fa976185 100644
--- a/components/os_crypt/libsecret_util_linux.cc
+++ b/components/os_crypt/libsecret_util_linux.cc
@@ -14,18 +14,24 @@
//
decltype(
- &::secret_password_store_sync) LibsecretLoader::secret_password_store_sync;
+ &::secret_password_store_sync) LibsecretLoader::secret_password_store_sync =
+ nullptr;
decltype(
- &::secret_service_search_sync) LibsecretLoader::secret_service_search_sync;
+ &::secret_service_search_sync) LibsecretLoader::secret_service_search_sync =
+ nullptr;
decltype(
- &::secret_password_clear_sync) LibsecretLoader::secret_password_clear_sync;
-decltype(&::secret_item_get_secret) LibsecretLoader::secret_item_get_secret;
-decltype(&::secret_value_get_text) LibsecretLoader::secret_value_get_text;
+ &::secret_password_clear_sync) LibsecretLoader::secret_password_clear_sync =
+ nullptr;
+decltype(&::secret_item_get_secret) LibsecretLoader::secret_item_get_secret =
+ nullptr;
+decltype(&::secret_value_get_text) LibsecretLoader::secret_value_get_text =
+ nullptr;
decltype(
- &::secret_item_get_attributes) LibsecretLoader::secret_item_get_attributes;
+ &::secret_item_get_attributes) LibsecretLoader::secret_item_get_attributes =
+ nullptr;
decltype(&::secret_item_load_secret_sync)
- LibsecretLoader::secret_item_load_secret_sync;
-decltype(&::secret_value_unref) LibsecretLoader::secret_value_unref;
+ LibsecretLoader::secret_item_load_secret_sync = nullptr;
+decltype(&::secret_value_unref) LibsecretLoader::secret_value_unref = nullptr;
bool LibsecretLoader::libsecret_loaded_ = false;
« no previous file with comments | « components/os_crypt/key_storage_libsecret_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698