• zea@chromium.org's avatar
    [Sync] Fix encryption/passphrase handling. · cc10e7c4
    zea@chromium.org authored
    We now ensure cached passphrases are always used. In addition, encryption now
    happens after configuration, allowing us to make use of the
    pending_encrypted_types to know if we're waiting for encryption (which
    affects how we prompt for passphrase). This is dependent on sync_setup_flow.cc
    always calling EncryptDataTypes before configuring the new datatypes and setting
    pending_encrypted_types_ appropriately, which then gets consumed on
    SYNC_CONFIGURE_DONE.
    
    BUG=91314
    TEST=see bug
    
    Review URL: http://codereview.chromium.org/7551024
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95693 0039d316-1c4b-4281-b951-d872f2087c98
    cc10e7c4
syncapi.cc 108 KB