feat: expose safestorage backend information on linux (#38873)

* feat: expose safestorage backend information on linux

* Remove gnome-keyring

Refs 4609704
This commit is contained in:
Robo 2023-07-13 18:14:33 +09:00 committed by GitHub
parent dc671804da
commit 34e7c3696a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 127 additions and 39 deletions

View file

@ -23,6 +23,10 @@
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "shell/browser/net/system_network_context_manager.h"
#if BUILDFLAG(IS_LINUX)
#include "components/os_crypt/sync/key_storage_util_linux.h"
#endif
namespace printing {
class PrintJobManager;
}
@ -53,6 +57,11 @@ class BrowserProcessImpl : public BrowserProcess {
void SetSystemLocale(const std::string& locale);
const std::string& GetSystemLocale() const;
#if BUILDFLAG(IS_LINUX)
void SetLinuxStorageBackend(os_crypt::SelectedLinuxBackend selected_backend);
const std::string& GetLinuxStorageBackend() const;
#endif
void EndSession() override {}
void FlushLocalStateAndReply(base::OnceClosure reply) override {}
bool IsShuttingDown() override;
@ -120,6 +129,9 @@ class BrowserProcessImpl : public BrowserProcess {
std::unique_ptr<PrefService> local_state_;
std::string locale_;
std::string system_locale_;
#if BUILDFLAG(IS_LINUX)
std::string selected_linux_storage_backend_;
#endif
embedder_support::OriginTrialsSettingsStorage origin_trials_settings_storage_;
std::unique_ptr<network::NetworkQualityTracker> network_quality_tracker_;