• Marc Treib's avatar
    PeopleHandler cleanup: Pull out helpers for Sync encryption strings · 48e03b91
    Marc Treib authored
    This CL extracts helper functions GetEnterPassphraseBody and
    GetFullEncryptionBody, which makes PeopleHandler::PushSyncPrefs quite a
    bit more readable.
    
    One small behavior difference is that before, the "fullEncryptionBody"
    string was populated even if the passphrase type was IMPLICIT (i.e. no
    actual Sync passphrase in use), but a passphrase *date* was set. That
    situation should never occur in the first place, but if it did, then
    passing that string made no sense anyway.
    
    Bug: none
    Change-Id: I31631483ef14159636846bcf470dfcc74770a8c0
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1543259Reviewed-by: default avatarThomas Tangl <tangltom@chromium.org>
    Commit-Queue: Marc Treib <treib@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#645356}
    48e03b91
people_handler.cc 44.2 KB