commit | 4f4311036e62cd2d059573b3ee4688fadb83ec6d | [log] [tgz] |
---|---|---|
author | Marc Treib <treib@chromium.org> | Thu Oct 18 09:41:53 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 18 09:41:53 2018 |
tree | 8ce904f3502dfeb4f6ce08c9247c80f4ca17f90d | |
parent | 55e3f84e68f754ac02daa9fb2863f28cdc400afa [diff] |
Cleanup: Make SyncServiceCrypto Reset()able In some circumstances, ProfileSyncService wants to fully reset SyncServiceCrypto's state. Currently, it destroys and recreated the whole object. That works, but it's problematic if we want to pass pointers to the SyncServiceCrypto object elsewhere. Instead, this CL adds a Reset() method to SyncServiceCrypto. For convenient implementation, and to make sure *everything* gets reset, all the mutable state gets wrapped into a new struct. Bug: 884159 Change-Id: Ia2590301a6236461e4df20d7f83fee5599e5483c Reviewed-on: https://chromium-review.googlesource.com/c/1286424 Commit-Queue: Marc Treib <treib@chromium.org> Reviewed-by: Mohamed Amir Yosef <mamir@chromium.org> Cr-Commit-Position: refs/heads/master@{#600705}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .