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 0f8449178b8f6fbdac2bad8285c863d339d31317..59edc92b86dbddfa572d46d9b67f36b98ed30324 100644 |
--- a/components/os_crypt/key_storage_linux.h |
+++ b/components/os_crypt/key_storage_linux.h |
@@ -17,8 +17,10 @@ class KeyStorageLinux { |
KeyStorageLinux() = default; |
virtual ~KeyStorageLinux() = default; |
- // Tries to load all known key storages. Returns the first that succeeds or |
- // null if none succeed. |
+ // Force OSCrypt to use a specific linux password store. |
+ static void SetStore(const std::string& store_type); |
+ |
+ // Tries to load the appropriate key storage. Returns null if none succeed. |
static std::unique_ptr<KeyStorageLinux> CreateService(); |
// Gets the encryption key from the OS password-managing library. If a key is |
@@ -30,6 +32,8 @@ class KeyStorageLinux { |
virtual bool Init() = 0; |
private: |
+ static const char* s_store_; |
+ |
DISALLOW_COPY_AND_ASSIGN(KeyStorageLinux); |
}; |