[cr147] GetPreconditionState takes a PreconditionContext
This change corrects all the overrides and callers to match the upstream
code now.
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/37a2d3f3e369a8777ddba89f67838845b6afba7
https://chromium.googlesource.com/chromium/src/+/1663727f6f77952f10f16088b45bf83d5cb631ea
commit 37a2d3f3e369a8777ddba89f67838845b6afba70
Author: Marc Treib <treib@chromium.org>
Date: Fri Mar 6 07:22:08 2026 -0800
Sync: Add PreconditionContext param to GetPreconditionState()
This CL adds a `struct PreconditionContext` that's passed to
DataTypeController::GetPreconditionState(). For now, the struct is
empty, but soon follow-up CLs will add information to it (notably the
"account managed status").
Bug: 40897778
Change-Id: I50ec2ee04dd44b31b2b6977f7f45b1366a6a6964
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7642050
Reviewed-by: Colin Blundell <blundell@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Reviewed-by: Mikel Astiz <mastiz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1595399}
commit 1663727f6f77952f10f16088b45bf83d5cb631ea
Author: Marc Treib <treib@chromium.org>
Date: Fri Mar 6 08:12:02 2026 -0800
Sync: Populate PreconditionContext with account managed status
This CL adds the "account managed status" (whether the syncing account
is a consumer or enterprise account) to PreconditionContext, which gets
passed to DataTypeController::GetPreconditionState().
So far, none of the controllers use this state yet, but that will be
added soon in follow-up CLs.
Bug: 40897778
Change-Id: If87a0bd37fb47ef2e3d30ae175207c0f6a6a6964
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7642051
Reviewed-by: Mikel Astiz <mastiz@chromium.org>
Reviewed-by: Florian Leimgruber <fleimgruber@google.com>
Commit-Queue: Marc Treib <treib@chromium.org>
Reviewed-by: Liza Bipin <mlbipin@google.com>
Cr-Commit-Position: refs/heads/main@{#1595432}