• Kush Sinha's avatar
    crOS Account Manager: Add a util for running migrations · 1ae58559
    Kush Sinha authored
    A series of async steps need to be performed for migrating existing
    users to Chrome OS Account Manager. Please see the attached bug for a
    Design Document.
    
    Add a utility for sequentially running a series of async migration
    steps, which are run only if the previous step was completed
    successfully.
    
    This utility allows us to specify the migration steps in a declarative
    style with clear dependencies instead of creating a complex web of
    callbacks.
    
    Bug: 904128
    Test: unit_tests --gtest_filter="*MigrationRunnerTest*"
    Change-Id: I5bd5ddc1fb59060577e535fb115bd4689adfaaa7
    Reviewed-on: https://chromium-review.googlesource.com/c/1329964Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Reviewed-by: default avatarPavol Marko <pmarko@chromium.org>
    Commit-Queue: Kush Sinha <sinhak@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#612179}
    1ae58559
account_migration_runner.h 4.26 KB