OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
9 } | 9 } |
10 | 10 |
| 11 # TODO(crbug.com/706392): Fix password reuse detection for Android. |
| 12 password_reuse_detection_support = !is_android && !is_ios |
| 13 |
11 static_library("browser") { | 14 static_library("browser") { |
12 sources = [ | 15 sources = [ |
13 "affiliated_match_helper.cc", | 16 "affiliated_match_helper.cc", |
14 "affiliated_match_helper.h", | 17 "affiliated_match_helper.h", |
15 "affiliation_backend.cc", | 18 "affiliation_backend.cc", |
16 "affiliation_backend.h", | 19 "affiliation_backend.h", |
17 "affiliation_database.cc", | 20 "affiliation_database.cc", |
18 "affiliation_database.h", | 21 "affiliation_database.h", |
19 "affiliation_fetch_throttler.cc", | 22 "affiliation_fetch_throttler.cc", |
20 "affiliation_fetch_throttler.h", | 23 "affiliation_fetch_throttler.h", |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 "password_manager_constants.h", | 95 "password_manager_constants.h", |
93 "password_manager_driver.h", | 96 "password_manager_driver.h", |
94 "password_manager_internals_service.cc", | 97 "password_manager_internals_service.cc", |
95 "password_manager_internals_service.h", | 98 "password_manager_internals_service.h", |
96 "password_manager_metrics_util.cc", | 99 "password_manager_metrics_util.cc", |
97 "password_manager_metrics_util.h", | 100 "password_manager_metrics_util.h", |
98 "password_manager_settings_migration_experiment.cc", | 101 "password_manager_settings_migration_experiment.cc", |
99 "password_manager_settings_migration_experiment.h", | 102 "password_manager_settings_migration_experiment.h", |
100 "password_manager_util.cc", | 103 "password_manager_util.cc", |
101 "password_manager_util.h", | 104 "password_manager_util.h", |
102 "password_reuse_detection_manager.cc", | |
103 "password_reuse_detection_manager.h", | |
104 "password_reuse_detector.cc", | |
105 "password_reuse_detector.h", | |
106 "password_reuse_detector_consumer.cc", | |
107 "password_reuse_detector_consumer.h", | |
108 "password_store.cc", | 105 "password_store.cc", |
109 "password_store.h", | 106 "password_store.h", |
110 "password_store_change.cc", | 107 "password_store_change.cc", |
111 "password_store_change.h", | 108 "password_store_change.h", |
112 "password_store_consumer.cc", | 109 "password_store_consumer.cc", |
113 "password_store_consumer.h", | 110 "password_store_consumer.h", |
114 "password_store_default.cc", | 111 "password_store_default.cc", |
115 "password_store_default.h", | 112 "password_store_default.h", |
116 "password_store_factory_util.cc", | 113 "password_store_factory_util.cc", |
117 "password_store_factory_util.h", | 114 "password_store_factory_util.h", |
(...skipping 10 matching lines...) Expand all Loading... |
128 "statistics_table.cc", | 125 "statistics_table.cc", |
129 "statistics_table.h", | 126 "statistics_table.h", |
130 "test_affiliation_fetcher_factory.h", | 127 "test_affiliation_fetcher_factory.h", |
131 "webdata/logins_table.cc", | 128 "webdata/logins_table.cc", |
132 "webdata/logins_table.h", | 129 "webdata/logins_table.h", |
133 "webdata/logins_table_win.cc", | 130 "webdata/logins_table_win.cc", |
134 "webdata/password_web_data_service_win.cc", | 131 "webdata/password_web_data_service_win.cc", |
135 "webdata/password_web_data_service_win.h", | 132 "webdata/password_web_data_service_win.h", |
136 ] | 133 ] |
137 | 134 |
| 135 if (password_reuse_detection_support) { |
| 136 sources += [ |
| 137 "password_reuse_detection_manager.cc", |
| 138 "password_reuse_detection_manager.h", |
| 139 "password_reuse_detector.cc", |
| 140 "password_reuse_detector.h", |
| 141 "password_reuse_detector_consumer.cc", |
| 142 "password_reuse_detector_consumer.h", |
| 143 ] |
| 144 } |
| 145 |
138 public_deps = [ | 146 public_deps = [ |
139 "//base", | 147 "//base", |
140 "//components/sync", | 148 "//components/sync", |
141 ] | 149 ] |
142 deps = [ | 150 deps = [ |
143 ":proto", | 151 ":proto", |
144 "//base", | 152 "//base", |
145 "//base:i18n", | 153 "//base:i18n", |
146 "//components/autofill/core/browser", | 154 "//components/autofill/core/browser", |
147 "//components/autofill/core/browser/proto", | 155 "//components/autofill/core/browser/proto", |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 "login_database_unittest.cc", | 297 "login_database_unittest.cc", |
290 "login_model_unittest.cc", | 298 "login_model_unittest.cc", |
291 "obsolete_http_cleaner_unittest.cc", | 299 "obsolete_http_cleaner_unittest.cc", |
292 "password_autofill_manager_unittest.cc", | 300 "password_autofill_manager_unittest.cc", |
293 "password_bubble_experiment_unittest.cc", | 301 "password_bubble_experiment_unittest.cc", |
294 "password_form_manager_unittest.cc", | 302 "password_form_manager_unittest.cc", |
295 "password_generation_manager_unittest.cc", | 303 "password_generation_manager_unittest.cc", |
296 "password_manager_settings_migration_experiment_unittest.cc", | 304 "password_manager_settings_migration_experiment_unittest.cc", |
297 "password_manager_unittest.cc", | 305 "password_manager_unittest.cc", |
298 "password_manager_util_unittest.cc", | 306 "password_manager_util_unittest.cc", |
299 "password_reuse_detection_manager_unittest.cc", | |
300 "password_reuse_detector_unittest.cc", | |
301 "password_store_default_unittest.cc", | 307 "password_store_default_unittest.cc", |
302 "password_store_origin_unittest.h", | 308 "password_store_origin_unittest.h", |
303 "password_store_unittest.cc", | 309 "password_store_unittest.cc", |
304 "password_syncable_service_unittest.cc", | 310 "password_syncable_service_unittest.cc", |
305 "password_ui_utils_unittest.cc", | 311 "password_ui_utils_unittest.cc", |
306 "psl_matching_helper_unittest.cc", | 312 "psl_matching_helper_unittest.cc", |
307 "sql_table_builder_unittest.cc", | 313 "sql_table_builder_unittest.cc", |
308 "statistics_table_unittest.cc", | 314 "statistics_table_unittest.cc", |
309 ] | 315 ] |
310 if (is_mac) { | 316 if (is_mac) { |
311 sources -= [ "password_store_default_unittest.cc" ] | 317 sources -= [ "password_store_default_unittest.cc" ] |
312 } | 318 } |
313 if (is_ios) { | 319 if (is_ios) { |
314 sources += [ "login_database_ios_unittest.cc" ] | 320 sources += [ "login_database_ios_unittest.cc" ] |
315 } | 321 } |
| 322 if (password_reuse_detection_support) { |
| 323 sources += [ |
| 324 "password_reuse_detection_manager_unittest.cc", |
| 325 "password_reuse_detector_unittest.cc", |
| 326 ] |
| 327 } |
316 deps = [ | 328 deps = [ |
317 ":test_support", | 329 ":test_support", |
318 ":unit_tests_bundle_data", | 330 ":unit_tests_bundle_data", |
319 "//base/test:test_support", | 331 "//base/test:test_support", |
320 "//components/autofill/core/browser:test_support", | 332 "//components/autofill/core/browser:test_support", |
321 "//components/autofill/core/browser/proto", | 333 "//components/autofill/core/browser/proto", |
322 "//components/autofill/core/common", | 334 "//components/autofill/core/common", |
323 "//components/os_crypt:test_support", | 335 "//components/os_crypt:test_support", |
324 "//components/password_manager/core/browser:proto", | 336 "//components/password_manager/core/browser:proto", |
325 "//components/password_manager/core/common", | 337 "//components/password_manager/core/common", |
326 "//components/prefs:test_support", | 338 "//components/prefs:test_support", |
327 "//components/security_state/core", | 339 "//components/security_state/core", |
328 "//components/strings", | 340 "//components/strings", |
329 "//components/sync:test_support_driver", | 341 "//components/sync:test_support_driver", |
330 "//components/sync:test_support_model", | 342 "//components/sync:test_support_model", |
331 "//components/variations", | 343 "//components/variations", |
332 "//net:test_support", | 344 "//net:test_support", |
333 "//sql:test_support", | 345 "//sql:test_support", |
334 "//testing/gmock", | 346 "//testing/gmock", |
335 "//testing/gtest", | 347 "//testing/gtest", |
336 "//ui/base", | 348 "//ui/base", |
337 "//url", | 349 "//url", |
338 ] | 350 ] |
339 } | 351 } |
OLD | NEW |