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..25d10836d0356295666782771211a41cb9805b8f 100644 |
--- a/components/os_crypt/key_storage_linux.h |
+++ b/components/os_crypt/key_storage_linux.h |
@@ -17,6 +17,9 @@ class KeyStorageLinux { |
KeyStorageLinux() = default; |
virtual ~KeyStorageLinux() = default; |
+ // Force OSCrypt to use a specific linux password store. |
+ static void SetStore(const std::string& store_type); |
+ |
// Tries to load all known key storages. Returns the first that succeeds or |
// null if none succeed. |
static std::unique_ptr<KeyStorageLinux> CreateService(); |
@@ -30,6 +33,8 @@ class KeyStorageLinux { |
virtual bool Init() = 0; |
private: |
+ static const char* s_store_; |
Lei Zhang
2016/07/06 18:57:28
Can this be a std::string?
cfroussios
2016/07/11 08:32:00
The linter does not permit static string variables
Lei Zhang
2016/07/12 02:02:53
Oh right. Can it be a base::LazyInstance<std::stri
cfroussios
2016/07/12 15:25:35
Done.
|
+ |
DISALLOW_COPY_AND_ASSIGN(KeyStorageLinux); |
}; |