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

Unified Diff: components/os_crypt/os_crypt.h

Issue 2262693002: Initialize OSCrypt with a TaskRunner on the main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 4 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_linux.cc ('k') | components/os_crypt/os_crypt_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/os_crypt/os_crypt.h
diff --git a/components/os_crypt/os_crypt.h b/components/os_crypt/os_crypt.h
index c3e04f74dd6097aacd26056b6f13a010b761dbb3..6e3ca9c666019fc17fa749bf17b258b52b04d18c 100644
--- a/components/os_crypt/os_crypt.h
+++ b/components/os_crypt/os_crypt.h
@@ -8,6 +8,8 @@
#include <string>
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string16.h"
#include "build/build_config.h"
@@ -30,6 +32,12 @@ class OSCrypt {
// Some password stores may prompt the user for permission and show the
// application name.
static void SetProductName(const std::string& product_name);
+
+ // The gnome-keyring implementation requires calls from the main thread.
+ // TODO(crbug/466975): Libsecret and KWallet don't need this. We can remove
+ // this when we stop supporting keyring.
+ static void SetMainThreadRunner(
+ scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner);
#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
// Encrypt a string16. The output (second argument) is really an array of
« no previous file with comments | « components/os_crypt/key_storage_linux.cc ('k') | components/os_crypt/os_crypt_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698