It turns out that, for dogs, a chemical in chocolate called theobromine is the source of the problem. Theobromine is similar to caffeine. According to this page, theobromine is toxic to a dog when it ingests between 100 and 150 milligrams per kilogram of body weight.