No one was struck in the shooting, which occurred around 2:30 p.m. in the McDonald's at the downtown San Leandro Plaza at 1287 Washington Ave.
The suspect's have been identified as Antioch residents Marcel Brooks and Adanna Ibe.
Brooks is the father of the baby and he also has a 5-year-old child with Ibe.
After further investigation, police are certain that the intended target was the baby.
"In my opinion, it's a miracle that she was missed," San Leandro Police Department Lt. Isaac Benabou said.
ABC7 News contributed to this story.