1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-27358] Remove unused getInstalledBrowsers method (#17019)

* Remove unused getInstalledBrowsers metthod

* Run cargo fmt

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith
2025-10-28 11:13:58 +01:00
committed by GitHub
parent 2b2b1f4a27
commit 8eef78960d
4 changed files with 2 additions and 15 deletions

View File

@@ -1066,8 +1066,8 @@ pub mod logging {
pub mod chromium_importer {
use chromium_importer::{
chromium::{
DefaultInstalledBrowserRetriever, InstalledBrowserRetriever,
LoginImportResult as _LoginImportResult, ProfileInfo as _ProfileInfo,
DefaultInstalledBrowserRetriever, LoginImportResult as _LoginImportResult,
ProfileInfo as _ProfileInfo,
},
metadata::NativeImporterMetadata as _NativeImporterMetadata,
};
@@ -1159,12 +1159,6 @@ pub mod chromium_importer {
.collect()
}
#[napi]
pub fn get_installed_browsers() -> napi::Result<Vec<String>> {
chromium_importer::chromium::DefaultInstalledBrowserRetriever::get_installed_browsers()
.map_err(|e| napi::Error::from_reason(e.to_string()))
}
#[napi]
pub fn get_available_profiles(browser: String) -> napi::Result<Vec<ProfileInfo>> {
chromium_importer::chromium::get_available_profiles(&browser)