Synchronise flags for sync password reuse detection
There are two flags guarding support for detecting sync password
reuse:
(1) password_reuse_detection_support in
components/password_manager/core/browser/BUILD.gn, and
(2) SYNC_PASSWORD_REUSE_DETECTION_ENABLED in
components/password_manager/core/browser/password_reuse_defines.h
Those got out of sync, with the former excluding Android and the
latter not. This can cause compilation errors.
Furthermore, at some places, direct mentions of OS_* macros are used
instead of SYNC_PASSWORD_REUSE_DETECTION_ENABLED. This breaks
compilation if SYNC_PASSWORD_REUSE_DETECTION_ENABLED is changed.
Therefore this CL defines (2) by (1) and abolishes
password_reuse_defines.h completely. It also replaces OS_* macros
with SYNC_PASSWORD_REUSE_DETECTION_ENABLED as appropriate.
Finally, it adds "// nogncheck" to conditional #includes which
would otherwise cause troubles, following the guidance of [1],
and also adds a missing #include, which was found when switching
password_reuse_detection_support to exclude Linux instead.
[1] https://chromium.googlesource.com/chromium/src/+/eca97f87e275a7c9c5b7f13a65ff8635f0821d46/tools/gn/docs/reference.md#controlling-includes-individually
Bug: 706392
Change-Id: I40113777be9440faccb4e80fbca2a3571e2f6110
Reviewed-on: https://chromium-review.googlesource.com/1252585Reviewed-by:
Vadym Doroshenko <dvadym@chromium.org>
Commit-Queue: Vaclav Brozek <vabr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595441}
Showing
Please register or sign in to comment