The toxic component of chocolate is theobromine.
Humans easily metabolize theobromine, but dogs process it much more slowly, allowing it to build up to toxic levels in their system.
A large dog can consume more chocolate than a small dog before suffering ill effects.