DescriptionCleanup threading in PolicyWatcher.
Previously PolicyWatcher allowed initialization on a thread
different from the one it runs on. It's no longer necessary.
Also for It2Me it was initialized on UI thread, but was given
task runner for the network thread, which causes the DCHECK in the
linked bug.
Now PolicyWatcher is marked as NonThreadSafe. It's initialized on
UI thread for It2Me host and on NetworkThread for the me2me host.
Also the file thread is used for blocking operation when reading
policies.
BUG=453615
Committed: https://crrev.com/b2ae7e31aeeaa8f6dcffc4d2c859beea16ae97c2
Cr-Commit-Position: refs/heads/master@{#314026}
Patch Set 1 : #Patch Set 2 : #
Total comments: 17
Patch Set 3 : #
Total comments: 6
Patch Set 4 : merge trunk #Patch Set 5 : #Patch Set 6 : #
Messages
Total messages: 20 (8 generated)
|