DescriptionGet rid of FileThreadDeserializer.
Replace it with modern threading constructs:
- PostTaskAndReplyWithResult gets rid of most of the logic FileThreadDeserializer was implementing.
- The remainder logic didn't require any class state so it was moved to anonymous methods.
Also declare JsonPrefStore explicitly NonThreadSafe (the only actions outside the UI thread should happen by posting anonymous tasks to the |sequenced_task_runner_|).
This is a stepping stone in cleaning up JsonPrefStore to eventually get rid of PrefStore's ref-counting scheme.
BUG=393081
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284754
Patch Set 1 : #Patch Set 2 : Explicitly declare JsonPrefStore non-thread-safe. #
Total comments: 6
Patch Set 3 : inline PostTaskAndReplyWithResult #
Messages
Total messages: 8 (0 generated)
|