Index: components/password_manager/core/browser/BUILD.gn |
diff --git a/components/password_manager/core/browser/BUILD.gn b/components/password_manager/core/browser/BUILD.gn |
index 8b4356cda8a95e92cca4890d35e3092db09afd7b..c577786f4a9b7343431ed7c67447f9843c81268e 100644 |
--- a/components/password_manager/core/browser/BUILD.gn |
+++ b/components/password_manager/core/browser/BUILD.gn |
@@ -8,6 +8,11 @@ if (is_android) { |
import("//build/config/android/config.gni") |
} |
+password_reuse_detection_support = !is_android && !is_ios |
+if (password_reuse_detection_support) { |
+ defines = [ "PASSWORD_REUSE_DETECTION_SUPPORT" ] |
+} |
+ |
static_library("browser") { |
sources = [ |
"affiliated_match_helper.cc", |
@@ -99,12 +104,6 @@ static_library("browser") { |
"password_manager_settings_migration_experiment.h", |
"password_manager_util.cc", |
"password_manager_util.h", |
- "password_reuse_detection_manager.cc", |
- "password_reuse_detection_manager.h", |
- "password_reuse_detector.cc", |
- "password_reuse_detector.h", |
- "password_reuse_detector_consumer.cc", |
- "password_reuse_detector_consumer.h", |
"password_store.cc", |
"password_store.h", |
"password_store_change.cc", |
@@ -135,6 +134,17 @@ static_library("browser") { |
"webdata/password_web_data_service_win.h", |
] |
+ if (password_reuse_detection_support) { |
+ sources += [ |
+ "password_reuse_detection_manager.cc", |
+ "password_reuse_detection_manager.h", |
+ "password_reuse_detector.cc", |
+ "password_reuse_detector.h", |
+ "password_reuse_detector_consumer.cc", |
+ "password_reuse_detector_consumer.h", |
+ ] |
+ } |
+ |
public_deps = [ |
"//base", |
"//components/sync", |
@@ -296,8 +306,6 @@ source_set("unit_tests") { |
"password_manager_settings_migration_experiment_unittest.cc", |
"password_manager_unittest.cc", |
"password_manager_util_unittest.cc", |
- "password_reuse_detection_manager_unittest.cc", |
- "password_reuse_detector_unittest.cc", |
"password_store_default_unittest.cc", |
"password_store_origin_unittest.h", |
"password_store_unittest.cc", |
@@ -313,6 +321,12 @@ source_set("unit_tests") { |
if (is_ios) { |
sources += [ "login_database_ios_unittest.cc" ] |
} |
+ if (password_reuse_detection_support) { |
+ sources += [ |
+ "password_reuse_detection_manager_unittest.cc", |
+ "password_reuse_detector_unittest.cc", |
+ ] |
+ } |
deps = [ |
":test_support", |
":unit_tests_bundle_data", |