How to use tor with chromium?

This works for me.

chromium --proxy-server=“socks5://localhost:9050” --user-data-dir=“/path/to/chromium”