Skip to content

Commit

Permalink
Get rid of FileThreadDeserializer.
Browse files Browse the repository at this point in the history
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

Review URL: https://codereview.chromium.org/400673008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284754 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
gab@chromium.org committed Jul 22, 2014
1 parent 4cbbeb4 commit f245659
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 128 deletions.
Loading

0 comments on commit f245659

Please sign in to comment.