Good to see Chris Brown took care of that anger management problem.

A judge Wednesday sentenced Brown to 90 days in a rehab facility, after the R&B singer was tossed out of voluntary rehab in Malibu because he threw a rock through his mother’s car window, according to TMZ.

In case you need catching up, Brown was on probation for assaulting Rihanna in 2009. Earlier this year, a judge decided Brown didn’t actually complete the community service hours required as part of a plea deal. So he received more hours and was still on probation. A few weeks back, he fought a man outside a New York club and — facing a possible jail sentence for violating probation — checked himself into a rehab for anger issues.

Which lasted all of 13 days. Apparently Brown and his mother got into a disagreement about how much time he should spend in treatment, and, apparently to demonstrate his mother was wrong in saying he needed more treatment, he chucked a rock through her car window.

Irony can be so ironic.

According to documents obtained by TMZ, Brown will have to spend 90 days in a court-approved, live-in anger management facility and submit to drug testing. No word on when he has to report, or if he has to pay for his mom’s car window.

Contact Tony Hicks at Facebook.com/BayAreaNewsGroup.TonyHicks or Twitter.com/insertfoot.