Add BiometricAuthenticatorWin class

BiometricAuthenticatorWin takes over support for biometric
authentication on Windows.
Added that class to ChromeBiometricAuthenticatorFactory, and used it
for authentication in settings. This CL does not change current
behaviour and it is for cleanup purposes only.

Bug: 1351645
Change-Id: I0173da961b1e2ec983997eb21963e2e82c176945
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3819767
Reviewed-by: Vasilii Sukhanov <[email protected]>
Commit-Queue: Karol Sygiet <[email protected]>
Reviewed-by: Viktor Semeniuk <[email protected]>
Reviewed-by: Ioana Pandele <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1038650}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 3065365c..2ef998b 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -404,10 +404,6 @@
     "data_use_measurement/chrome_data_use_measurement.h",
     "defaults.cc",
     "defaults.h",
-    "device_reauth/chrome_biometric_authenticator_common.cc",
-    "device_reauth/chrome_biometric_authenticator_common.h",
-    "device_reauth/chrome_biometric_authenticator_factory.cc",
-    "device_reauth/chrome_biometric_authenticator_factory.h",
     "dips/cookie_access_filter.cc",
     "dips/cookie_access_filter.h",
     "dips/dips_bounce_detector.cc",
@@ -5835,6 +5831,8 @@
       "component_updater/recovery_improved_component_installer_win.cc",
       "component_updater/sw_reporter_installer_win.cc",
       "component_updater/sw_reporter_installer_win.h",
+      "device_reauth/win/biometric_authenticator_win.cc",
+      "device_reauth/win/biometric_authenticator_win.h",
       "download/download_status_updater_win.cc",
       "download/trusted_sources_manager_win.cc",
       "enterprise/signals/device_info_fetcher_win.cc",
@@ -6244,6 +6242,15 @@
     deps += [ "//chrome/browser/privacy:traffic_annotation_proto" ]
   }
 
+  if (is_android || is_mac || is_win) {
+    sources += [
+      "device_reauth/chrome_biometric_authenticator_common.cc",
+      "device_reauth/chrome_biometric_authenticator_common.h",
+      "device_reauth/chrome_biometric_authenticator_factory.cc",
+      "device_reauth/chrome_biometric_authenticator_factory.h",
+    ]
+  }
+
   if (is_mac || is_win) {
     # Support for the recovery improved component.
     sources += [