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

Unified Diff: components/os_crypt/key_storage_linux.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 | « chrome/browser/chrome_browser_main_linux.cc ('k') | components/os_crypt/key_storage_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/os_crypt/key_storage_linux.h
diff --git a/components/os_crypt/key_storage_linux.h b/components/os_crypt/key_storage_linux.h
index 2791d75633b4b8a264705c1db6663b11e0294ecb..1808706f4d5e1ae427eecf6d5ca2edb66f357d1d 100644
--- a/components/os_crypt/key_storage_linux.h
+++ b/components/os_crypt/key_storage_linux.h
@@ -9,6 +9,8 @@
#include <string>
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
// An API for retrieving OSCrypt's password from the system's password storage
// service.
@@ -23,6 +25,12 @@ class KeyStorageLinux {
// The product name to use for permission prompts.
static void SetProductName(const std::string& product_name);
+ // A runner on the main thread for gnome-keyring to be called from.
+ // 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);
+
// Tries to load the appropriate key storage. Returns null if none succeed.
static std::unique_ptr<KeyStorageLinux> CreateService();
« no previous file with comments | « chrome/browser/chrome_browser_main_linux.cc ('k') | components/os_crypt/key_storage_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698