https://support.google.com/chromebook/answer/7225252?vid=0-1227562323844-1507740503106
Go to "settings" -> "advanced" -> printers, and add printer manually.
Give ip address, e.g. 192.168.18.21
Pick protocol: appsocket
And choose "HP" and model "Color LaserJet? CP2025n".