Not safe, it has sugar and onions, dogs can't deal with any of them! Onions will cause anemia, directly affecting the red blood cells, onions are toxic for dogs, while sugar will definitely cause liver failure.
Well somebody asked for a reference, in the US you should read what the American Kennel Club published on its website, all you need to know about dog nutrition is right there:
http://www.akc.org/content/health/dog-nutrition/
And regarding to onions:
http://www.akc.org/content/health/articles/can-dogs-eat-onions/