Currently ChromotingJniInstance is a ref-counting class running on multiple threads. To be more confusing, it even has a WeakPtrFactory that is only being used on the network thread. We should consider breaking it down to three single-threaded classes, use unique_ptr to hold them and delete them on their right thread.
Comment 1 by yuweih@chromium.org
, May 25 2016