DataTypeManagerImpl cleanup: assocation_types_queue_ is single-element
DataTypeManagerImpl::assocation_types_queue_ only ever contained <= 1 entry. So this CL changes it from a queue to an Optional, and simplifies some code accordingly. Before USS, association was an async step that ran in parallel with downloading, and so multiple association steps could get queued up. Now, StartNextAssociation() is synchronous. When a download is complete, the corresponding StartNextAssociation thus finishes immediately, before the next download is started. So there can never be more than one pending (the one corresponding to the currently-ongoing download). Bug: 1102837 Change-Id: Ifd19f5fa676451a77a58582e0c03a2c20a7107ba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2565710 Commit-Queue: Marc Treib <treib@chromium.org> Reviewed-by:Jan Krcal <jkrcal@chromium.org> Cr-Commit-Position: refs/heads/master@{#832271}
Showing
Please register or sign in to comment