The chemical evolution of self-gravitating primordial disks